From 8fa7135b463a688b47500b06c3ed490a345a10f7 Mon Sep 17 00:00:00 2001 From: jau1 <95550641@163.com> Date: Wed, 13 Dec 2023 12:09:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9docker=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ffb8c21b..33cf674a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM node:16 as builder WORKDIR /build COPY web/package.json . +RUN npm npm config set registry https://registry.npmmirror.com/ RUN npm install COPY ./web . COPY ./VERSION . @@ -15,6 +16,8 @@ ENV GO111MODULE=on \ WORKDIR /build ADD go.mod go.sum ./ +RUN go env -w GO111MODULE=on +RUN go env -w GOPROXY=https://goproxy.cn,direct RUN go mod download COPY . . COPY --from=builder /build/build ./web/build