14 lines
320 B
Docker
14 lines
320 B
Docker
FROM golang:alpine as build
|
|
RUN apk add --no-cache git
|
|
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-auth cmd/main.go
|
|
|
|
FROM golang:alpine
|
|
COPY --from=build /app/mf-auth /usr/bin/mf-auth
|
|
WORKDIR /app
|
|
CMD ["/usr/bin/mf-auth"] |