修改dockerfile

This commit is contained in:
whyour 2022-01-29 00:09:37 +08:00
parent f12c75f91b
commit b53db97b98
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,8 @@ 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 \
&& pnpm uninstall sqlite3 \
&& pnpm uninstall sqlite3 &>/dev/null \
&& rm -rf node_modules \
&& 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/ \

View File

@ -9,6 +9,7 @@
"panel": "npm run build:back && node build/app.js",
"schedule": "npm run build:back && node build/schedule.js",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"prepare": "umi generate tmp",
"test": "umi-test",
"test:coverage": "umi-test --coverage"
},