FROM golang as builder ENV CGO_ENABLED=0 GOOS=linux WORKDIR /app ADD . . RUN go build -o build ./cmd FROM alpine as runner WORKDIR /app COPY --from=builder /app/build /app/build ENTRYPOINT ["/app/build"]