users/Dockerfile

14 lines
324 B
Docker
Raw Permalink Normal View History

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