feat: proxy.

This commit is contained in:
2025-03-21 09:17:02 +08:00
parent 83f3c6e11f
commit 243361ee80

View File

@ -2,6 +2,7 @@
FROM golang:1.23-alpine AS builder FROM golang:1.23-alpine AS builder
WORKDIR /app WORKDIR /app
COPY go.mod go.sum ./ COPY go.mod go.sum ./
ENV GOPROXY=https://goproxy.cn,direct
RUN go mod download RUN go mod download
COPY . . COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main . RUN CGO_ENABLED=0 GOOS=linux go build -o main .