更新dockerfile

This commit is contained in:
whyour 2022-01-29 11:20:43 +08:00
parent b53db97b98
commit e60cf15f39

View File

@ -18,7 +18,7 @@ RUN git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \
&& cp -f .env.example .env \ && cp -f .env.example .env \
&& chmod 777 ${QL_DIR}/shell/*.sh \ && chmod 777 ${QL_DIR}/shell/*.sh \
&& chmod 777 ${QL_DIR}/docker/*.sh \ && chmod 777 ${QL_DIR}/docker/*.sh \
&& pnpm uninstall sqlite3 &>/dev/null \ && pnpm uninstall sqlite3 2>&1 > /dev/null || echo "卸载sqlite3失败"
&& rm -rf node_modules \ && rm -rf node_modules \
&& pnpm install --prod \ && pnpm install --prod \
&& cp -rf /usr/local/pnpm-global/5/node_modules/sqlite3 ./node_modules/ \ && cp -rf /usr/local/pnpm-global/5/node_modules/sqlite3 ./node_modules/ \