diff --git a/Dockerfile b/Dockerfile index b05ffc6..f0ca672 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,16 @@ FROM golang:1.26-alpine AS build WORKDIR /src + +# Fetch internal gitea-hosted Go modules (e.g. mcp-chassis) without going +# through proxy.golang.org and without HTTP→HTTPS surprises. Gitea returns +# http:// in its go-import meta tag, so rewrite to https here and bypass +# the module proxy + sumdb. +RUN apk add --no-cache git && \ + git config --global url."https://gitea.d-ma.be/".insteadOf "http://gitea.d-ma.be/" +ENV GOPRIVATE=gitea.d-ma.be +ENV GOPROXY=direct +ENV GOSUMDB=off + COPY go.mod go.sum ./ RUN go mod download COPY . .