修复docker构建的问题

This commit is contained in:
andy committed 2026-09-05 16:50:56 +08:00
1 parent 8700321af6
commit f60b416949
6 files changed
+76 -20

No files matched your search

+6 -1
View File
@@ -6,7 +6,12 @@ FROM golang:1.26.8-alpine3.24 AS build
WORKDIR /src
RUN apk add --no-cache ca-certificates
# Keep git in the builder because the default GOPROXY policy permits a
# checksum-verified direct VCS fallback. It is not copied into the runtime.
RUN apk add --no-cache ca-certificates git
ARG GOPROXY=https://proxy.golang.org,direct
ENV GOPROXY=${GOPROXY}
COPY go.mod go.sum ./
RUN go mod download