修改打包

main
rustdreamer 2 years ago
parent bcb3d90f15
commit 5c4e6a1e69

@ -38,7 +38,7 @@ steps:
commands:
# 删除文件 npm install
# - rm -rf package-lock.json
- npm --registry https://registry.npm.taobao.org install
- npm set strict-ssl false && npm --registry https://registry.npm.taobao.org install
when:
event: [push, pull_request]
branch: [development, test, main, sso]

@ -12,6 +12,7 @@ COPY package.json yarn.lock ./
RUN npm config set registry https://registry.npm.taobao.org
#RUN npm config set unsafe-perm true
# COPY ./patches patches
RUN npm set strict-ssl false
RUN npm install --production;
RUN npm run postinstall;
@ -26,7 +27,7 @@ COPY production.env production.env
COPY production.env development.env
# Run the container under "node" user by default
RUN mkdir apk
COPY ./apk/app.apk apk/app.apk
COPY ./src/apk/app.apk apk/app.apk
USER node
CMD [ "node", "main.js" ]

Loading…
Cancel
Save