From 91993f1a47c9dfe1672070edaaf33ffaa916ffee Mon Sep 17 00:00:00 2001 From: jau1 <95550641@163.com> Date: Wed, 13 Dec 2023 14:40:00 +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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33cf674a..2c34fd6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,16 +8,15 @@ COPY ./web . COPY ./VERSION . RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build -FROM golang AS builder2 +FROM golang:1.21 AS builder2 ENV GO111MODULE=on \ CGO_ENABLED=1 \ - GOOS=linux + GOOS=linux \ + GOPROXY=https://goproxy.cn,direct 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