library/Dockerfile

9 lines
223 B
Docker
Raw Permalink Normal View History

2024-08-13 21:01:35 +00:00
FROM golang:1.23
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"]