From c885953c6d1c82a3932cb670691e66a73448d0cc Mon Sep 17 00:00:00 2001 From: mlkt <365690226@qq.com> Date: Wed, 12 Jun 2024 17:52:01 +0800 Subject: [PATCH] =?UTF-8?q?docker=E6=9E=84=E5=BB=BA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=8A=A0=E9=80=9F=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6743b139..ac3963e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,22 +5,24 @@ COPY ./VERSION . COPY ./web . WORKDIR /web/default +RUN npm config set registry https://registry.npmmirror.com RUN npm install RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build WORKDIR /web/berry -RUN npm install +RUN npm install --force RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build WORKDIR /web/air -RUN npm install +RUN npm install --force RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build FROM golang AS builder2 ENV GO111MODULE=on \ CGO_ENABLED=1 \ - GOOS=linux + GOOS=linux \ + GOPROXY=https://goproxy.cn,direct WORKDIR /build ADD go.mod go.sum ./