优化dockerfile部署逻辑

This commit is contained in:
2026-07-24 21:33:57 +08:00
parent 3c03e2414e
commit c5173efb45
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@ WORKDIR /app
# 复制依赖文件
COPY go.mod go.sum ./
RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN go mod download
# 复制源码(确保 bin/ 和 static/ 目录存在)