Skip to content

Commit

Permalink
Refactor Dockerfile to add optional GOPROXY configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
xijaja committed Dec 3, 2024
1 parent a4cf41d commit 30ffcf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ WORKDIR /go/src/building
# 将项目目录下的所有文件复制到容器的工作目录
COPY . .

# 使用 goproxy 代理(可选)
# RUN go env -w GOPROXY="https://goproxy.cn,direct"

# 下载项目依赖
RUN go mod download

Expand Down

0 comments on commit 30ffcf3

Please sign in to comment.