fix: update Dockerfile to set Go module environment variables for backend and worker services

This commit is contained in:
keven1024
2025-06-02 15:25:42 +08:00
parent ce7b87fada
commit 99150f7015
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ WORKDIR /app
# Download Go modules
COPY go.mod go.sum ./
RUN go mod download
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go mod download
# Copy the source code. Note the slash at the end, as explained in
# https://docs.docker.com/engine/reference/builder/#copy

View File

@@ -7,7 +7,7 @@ WORKDIR /app
# Download Go modules
COPY go.mod go.sum ./
RUN go mod download
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go mod download
# Copy the source code. Note the slash at the end, as explained in
# https://docs.docker.com/engine/reference/builder/#copy