diff --git a/Dockerfile b/Dockerfile index d35b299..30ea64e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,16 @@ RUN apt-get update && apt-get install -y \ RUN curl -L https://github.com/golang-migrate/migrate/releases/download/v4.18.1/migrate.linux-amd64.tar.gz | tar xvz && \ mv migrate /usr/local/bin/migrate +# Get login +COPY ./.netrc /root/.netrc +RUN chmod 600 /root/.netrc + +# Let Go know which domains are private (important!) +ENV GOPRIVATE=gitea.cybertalant.ru + +# (optional) If Go still tries HTTPS auth, force it to use credentials from .netrc +RUN git config --global credential.helper store + # Copy go.mod and go.sum for caching dependencies COPY go.mod go.sum ./ RUN go mod download