修改dockfile

This commit is contained in:
whyour 2022-01-28 20:54:00 +08:00
parent a4f4c6ac15
commit 771b81afaf

View File

@ -18,9 +18,11 @@ RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
&& cp -f .env.example .env \
&& chmod 777 ${QL_DIR}/shell/*.sh \
&& chmod 777 ${QL_DIR}/docker/*.sh \
&& mkdir -p node_modules \
&& pnpm uninstall sqlite3 \
&& pnpm install --prod \
&& cp -rf /usr/local/pnpm-global/5/node_modules/sqlite3 ./node_modules/ \
&& cp -rf /usr/local/pnpm-global/5/node_modules/.pnpm/sqlite* ./node_modules/.pnpm/ \
&& git checkout . \
&& pnpm install --prod \
&& rm -rf /root/.pnpm-store \
&& git clone -b ${QL_BRANCH} https://github.com/${QL_MAINTAINER}/qinglong-static.git /static \