auth/Dockerfile

14 lines
320 B
Docker
Raw Normal View History

2023-10-21 08:26:15 +00:00
FROM golang:alpine as build
2023-10-22 21:07:19 +00:00
RUN apk add --no-cache git
2023-10-21 08:26:15 +00:00
WORKDIR /app
COPY go.sum /app/go.sum
COPY go.mod /app/go.mod
2023-10-22 21:07:19 +00:00
ENV GOPRIVATE=git.t-juice.club
2023-10-21 08:26:15 +00:00
RUN go mod download
COPY . /app
RUN go build -o mf-auth cmd/main.go
FROM golang:alpine
COPY --from=build /app/mf-auth /usr/bin/mf-auth
WORKDIR /app
CMD ["/usr/bin/mf-auth"]