更新dockerfile

This commit is contained in:
whyour 2022-01-30 14:59:41 +08:00
parent 5a95b72607
commit 7e4fe2f1b3
2 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,7 @@ RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
&& rm -rf /node_modules \
&& pnpm install --prod \
&& rm -rf /root/.pnpm-store \
&& rm -rf /root/.cache \
&& git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \
&& cp -rf /static/* ${QL_DIR} \
&& rm -rf /static

View File

@ -40,6 +40,10 @@ RUN set -x \
&& pnpm install -g pm2 \
&& pnpm install -g ts-node typescript tslib \
&& 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" ]