Make GOPROXY a build arg (proxy.golang.org is blocked on some networks)
Some checks failed
ci / test (push) Has been cancelled
ci / release (push) Has been cancelled

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-14 12:39:25 +02:00
parent 2ebfa4caaf
commit bf8e98dd49
3 changed files with 10 additions and 2 deletions

View File

@@ -12,6 +12,11 @@ ARG VERSION=dev
RUN TEFTER_VERSION=$VERSION npx vite build
FROM docker.io/library/golang:1.25-alpine AS build
# Overridable for hosts where proxy.golang.org (Google) is unreachable —
# set e.g. GOPROXY=https://goproxy.io,direct in .env.docker. Module
# integrity is still verified against the committed go.sum either way.
ARG GOPROXY=https://proxy.golang.org,direct
ENV GOPROXY=$GOPROXY
WORKDIR /src/server
COPY server/go.mod server/go.sum ./
RUN go mod download