diff --git a/.drone.yml b/.drone.yml index b3be9ae..752e565 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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] diff --git a/Dockerfile b/Dockerfile index 91cd262..2d54b81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]