Dockerfile should be able to download private packages

This commit is contained in:
Dawid Wysokiński 2020-06-02 12:10:06 +02:00
parent dcf839ed77
commit 684cbfc86e
2 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
.env.development
.env.production
.env
.env
.netrc

View File

@ -1,6 +1,11 @@
FROM golang:alpine
RUN apk add git
ENV MODE=production
ENV GOPRIVATE=github.com/tribalwarshelp
COPY ./.netrc /root/.netrc
RUN chmod 600 /root/.netrc
WORKDIR /go/src/app
COPY . .