fix: Fixed Dockerfile.

This commit is contained in:
Назар Гольченко 2025-10-13 20:11:10 +03:00
parent 30c1a08a9a
commit c96bbab7b3

View File

@ -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