diff --git a/Dockerfile b/Dockerfile index 81e9189..625357b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM golang:1.23-alpine AS builder WORKDIR /app COPY go.mod go.sum ./ +ENV GOPROXY=https://goproxy.cn,direct RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o main .