heruvym/Dockerfile
2023-03-02 14:21:24 +03:00

13 lines
242 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 scratch
COPY --from=builder /app/heruvym .
EXPOSE 1488
CMD ["/heruvym"]