fix: Fixed Dockerfile.
This commit is contained in:
parent
30c1a08a9a
commit
881133af74
3
.netrc
Normal file
3
.netrc
Normal file
@ -0,0 +1,3 @@
|
||||
machine gitea.cybertalant.ru
|
||||
login naznok999
|
||||
password Naz09102006!
|
||||
10
Dockerfile
10
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user