We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18cf64a commit b7e8320Copy full SHA for b7e8320
Dockerfile
@@ -5,7 +5,9 @@ FROM golang:1.21-alpine AS builder
5
WORKDIR /app
6
7
# 安装必要的包
8
-RUN apk add --no-cache git
+# - git:部分依赖可能需要走 VCS 拉取
9
+# - ca-certificates:Alpine 默认可能缺失 CA,导致 go mod download TLS 失败
10
+RUN apk add --no-cache git ca-certificates && update-ca-certificates
11
12
# 复制go mod文件
13
COPY go.mod go.sum ./
0 commit comments