fix: 统一 dev 构建代理配置
This commit is contained in:
@@ -18,6 +18,7 @@ DOCKERFILE_TPL = """\
|
|||||||
FROM golang:1.26-alpine AS builder
|
FROM golang:1.26-alpine AS builder
|
||||||
RUN apk add --no-cache tzdata
|
RUN apk add --no-cache tzdata
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
ARG GOPROXY="https://goproxy.cn,direct"
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN --mount=type=cache,target=/go/pkg/mod go mod download
|
RUN --mount=type=cache,target=/go/pkg/mod go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
Reference in New Issue
Block a user