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