Install git in the Go build stage for the GOPROXY direct fallback
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:50:04 +02:00
parent bf8e98dd49
commit 4328bbaeda

View File

@@ -12,6 +12,8 @@ ARG VERSION=dev
RUN TEFTER_VERSION=$VERSION npx vite build RUN TEFTER_VERSION=$VERSION npx vite build
FROM docker.io/library/golang:1.25-alpine AS build FROM docker.io/library/golang:1.25-alpine AS build
# git enables the GOPROXY "direct" fallback (fetch modules from their VCS).
RUN apk add --no-cache git
# Overridable for hosts where proxy.golang.org (Google) is unreachable — # Overridable for hosts where proxy.golang.org (Google) is unreachable —
# set e.g. GOPROXY=https://goproxy.io,direct in .env.docker. Module # set e.g. GOPROXY=https://goproxy.io,direct in .env.docker. Module
# integrity is still verified against the committed go.sum either way. # integrity is still verified against the committed go.sum either way.