auth/Dockerfile

12 lines
262 B
Docker
Raw Permalink Normal View History

2023-10-21 08:26:15 +00:00
FROM golang:alpine as build
WORKDIR /app
COPY go.sum /app/go.sum
COPY go.mod /app/go.mod
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"]