FROM golang:latest as builder WORKDIR /app COPY go.mod ./ COPY go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o heruvym FROM alpine COPY --from=builder /app/heruvym . COPY prod.key . COPY prod.crt . EXPOSE 1488 CMD ["/heruvym"]