From a792f32d5bd1957f1a37536959a9f7aeda25b783 Mon Sep 17 00:00:00 2001 From: yangjianbo Date: Mon, 29 Dec 2025 16:59:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96dockerfile=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 27ae0b56..9e83603a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ ARG NODE_IMAGE=node:24-alpine ARG GOLANG_IMAGE=golang:1.25-alpine ARG ALPINE_IMAGE=alpine:3.19 +ARG GOPROXY=https://goproxy.cn,direct +ARG GOSUMDB=sum.golang.google.cn # ----------------------------------------------------------------------------- # Stage 1: Frontend Builder @@ -34,6 +36,11 @@ FROM ${GOLANG_IMAGE} AS backend-builder ARG VERSION=docker ARG COMMIT=docker ARG DATE +ARG GOPROXY +ARG GOSUMDB + +ENV GOPROXY=${GOPROXY} +ENV GOSUMDB=${GOSUMDB} # Install build dependencies RUN apk add --no-cache git ca-certificates tzdata