From 243361ee80c32cb00206e0496ef958055de9d3cb Mon Sep 17 00:00:00 2001 From: laoboli <1293528695@qq.com> Date: Fri, 21 Mar 2025 09:17:02 +0800 Subject: [PATCH] feat: proxy. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) 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 .