From 5c4e6a1e6921e8e71519f7f8bcc7aeb288dbb5ae Mon Sep 17 00:00:00 2001 From: rustdreamer Date: Tue, 27 Feb 2024 15:35:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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" ]