library/Dockerfile

9 lines
223 B
Docker
Raw Normal View History

2022-05-07 19:50:14 +00:00
FROM golang:1.18
2021-08-08 14:01:20 +00:00
WORKDIR /src
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/serve
FROM scratch
2022-04-02 21:31:02 +00:00
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
2021-08-08 14:01:20 +00:00
COPY --from=0 /src/server ./
CMD ["/server"]