heruvym/Dockerfile
2023-03-06 17:39:24 +00:00

15 lines
273 B
Docker

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"]