Compare commits
2 Commits
33f3cbb66a
...
a59c736fdd
| Author | SHA1 | Date | |
|---|---|---|---|
| a59c736fdd | |||
| c96bbab7b3 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ redis.conf
|
|||||||
docker-compose.yaml
|
docker-compose.yaml
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.netrc
|
||||||
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 && \
|
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
|
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 and go.sum for caching dependencies
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user