From 4c5500bc7581c849676047712709cd320cc9f6fe Mon Sep 17 00:00:00 2001 From: KenGrofork <126143068+KenGrofork@users.noreply.github.com> Date: Tue, 21 May 2024 19:32:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E5=9B=BD=E5=86=85=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5651e37..62c6dc1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,16 +7,12 @@ COPY package.json ./ # 使用腾讯源(国内服务器可取消下方注释以提升安装速度) # RUN npm config set registry https://mirrors.cloud.tencent.com/npm/ -# 使用淘宝源(国内服务器可取消下方注释以提升安装速度) -# RUN npm config set registry https://registry.npmmirror.com - # 如遇到提示网站证书无效,取消下方注释,禁止严格SS策略 # RUN npm config set strict-ssl false -# 安装项目依赖 -RUN apk add --no-cache --virtual .build-deps git && \ - npm install --omit=dev && \ - apk del .build-deps +# 使用淘宝源安装项目依赖(国内用户居多) +RUN npm config set registry https://registry.npmmirror.com && \ + npm install --omit=dev # 运行阶段