13 lines
297 B
Docker
13 lines
297 B
Docker
FROM golang:alpine as build
|
|
WORKDIR /app
|
|
COPY go.sum /app/go.sum
|
|
COPY go.mod /app/go.mod
|
|
ENV GOPRIVATE=git.t-juice.club
|
|
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"] |