diff --git a/ingestion/Dockerfile b/ingestion/Dockerfile index bf91361..f9b985c 100644 --- a/ingestion/Dockerfile +++ b/ingestion/Dockerfile @@ -5,6 +5,15 @@ FROM golang:1.26-bookworm AS builder ARG VERSION=dev WORKDIR /src +# Fetch internal gitea-hosted Go modules (mcp-chassis) without going through +# proxy.golang.org and without HTTP→HTTPS surprises. The Gitea server returns +# http:// in its go-import meta tag (config-level limitation), so rewrite to +# https here and bypass the module proxy + sumdb. +RUN 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