From 4328bbaeda5cc4e70fa51942166afd2750bad0b1 Mon Sep 17 00:00:00 2001 From: Senad Date: Tue, 14 Jul 2026 12:50:04 +0200 Subject: [PATCH] Install git in the Go build stage for the GOPROXY direct fallback Co-Authored-By: Claude Fable 5 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index e45d078..011926a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,8 @@ ARG VERSION=dev RUN TEFTER_VERSION=$VERSION npx vite 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 — # set e.g. GOPROXY=https://goproxy.io,direct in .env.docker. Module # integrity is still verified against the committed go.sum either way.