library/Dockerfile

9 lines
223 B
Docker
Raw Normal View History

2024-02-25 01:42:16 +00:00
FROM golang:1.22
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"]