mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
更新dockerfile
This commit is contained in:
parent
5a95b72607
commit
7e4fe2f1b3
|
@ -22,6 +22,7 @@ RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
|
||||||
&& rm -rf /node_modules \
|
&& rm -rf /node_modules \
|
||||||
&& pnpm install --prod \
|
&& pnpm install --prod \
|
||||||
&& rm -rf /root/.pnpm-store \
|
&& rm -rf /root/.pnpm-store \
|
||||||
|
&& rm -rf /root/.cache \
|
||||||
&& git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
|
&& git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
|
||||||
&& cp -rf /static/* ${QL_DIR} \
|
&& cp -rf /static/* ${QL_DIR} \
|
||||||
&& rm -rf /static
|
&& rm -rf /static
|
||||||
|
|
|
@ -40,6 +40,10 @@ RUN set -x \
|
||||||
&& pnpm install -g pm2 \
|
&& pnpm install -g pm2 \
|
||||||
&& pnpm install -g ts-node typescript tslib \
|
&& pnpm install -g ts-node typescript tslib \
|
||||||
&& cd / && pnpm install --prod \
|
&& cd / && pnpm install --prod \
|
||||||
&& rm -rf /root/.npm
|
&& apk --purge del python2 g++ make \
|
||||||
|
&& rm -rf /root/.npm \
|
||||||
|
&& rm -rf /root/.pnpm-store \
|
||||||
|
&& rm -rf /root/.cache \
|
||||||
|
&& rm -f /package.json
|
||||||
|
|
||||||
CMD [ "node" ]
|
CMD [ "node" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user