Add GOPRIVATE to Dockerfile
This commit is contained in:
parent
2d908e913d
commit
037d347ef3
@ -1,7 +1,9 @@
|
|||||||
FROM golang:alpine as build
|
FROM golang:alpine as build
|
||||||
|
RUN apk add --no-cache git
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY go.sum /app/go.sum
|
COPY go.sum /app/go.sum
|
||||||
COPY go.mod /app/go.mod
|
COPY go.mod /app/go.mod
|
||||||
|
ENV GOPRIVATE=git.t-juice.club
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN go build -o mf-auth cmd/main.go
|
RUN go build -o mf-auth cmd/main.go
|
||||||
|
Loading…
Reference in New Issue
Block a user