修改国内镜像源
This commit is contained in:
@@ -2,6 +2,7 @@ FROM --platform=$BUILDPLATFORM golang:1.24.3-alpine AS builder
|
||||
|
||||
WORKDIR /src
|
||||
ENV CGO_ENABLED=0
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||
|
||||
Reference in New Issue
Block a user