From 9f2d7a507b409dbb598d72cd1902053fe0de1e2a Mon Sep 17 00:00:00 2001 From: ShukeBta Date: Tue, 9 Jun 2026 22:02:12 +0800 Subject: [PATCH] chore: allow docker build registry proxies --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ad50860..6ac0f78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,9 +16,10 @@ # ---- Stage 1: frontend (always build on the host architecture) ------------- FROM --platform=$BUILDPLATFORM node:20-alpine AS frontend +ARG NPM_CONFIG_REGISTRY=https://registry.npmjs.org/ WORKDIR /app/web COPY web/package*.json ./ -RUN npm ci +RUN npm ci --registry="${NPM_CONFIG_REGISTRY}" COPY web/ . RUN npm run build @@ -26,6 +27,8 @@ RUN npm run build FROM --platform=$BUILDPLATFORM golang:1.25-alpine AS backend ARG TARGETOS ARG TARGETARCH +ARG GOPROXY=https://proxy.golang.org,direct +ENV GOPROXY=${GOPROXY} WORKDIR /app COPY go.mod go.sum ./ RUN go mod download