heruvym/Dockerfile

15 lines
273 B
Docker
Raw Normal View History

2023-03-01 17:38:03 +00:00
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
2023-03-01 17:38:03 +00:00
COPY --from=builder /app/heruvym .
2023-03-06 17:39:24 +00:00
COPY prod.key .
COPY prod.crt .
2022-12-13 20:08:17 +00:00
EXPOSE 1488
2021-05-11 17:23:13 +00:00
CMD ["/heruvym"]