Set GOPRIVATE in Dockerfile

This commit is contained in:
Torjus Håkestad 2023-10-22 22:03:17 +02:00
parent 83ca5ee435
commit 9625b23033

View File

@ -2,6 +2,7 @@ FROM golang:alpine as build
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-users cmd/main.go RUN go build -o mf-users cmd/main.go