Add GOPRIVATE to Dockerfile

This commit is contained in:
Torjus Håkestad 2023-10-22 23:07:19 +02:00
parent 2d908e913d
commit 037d347ef3

View File

@ -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