library/Dockerfile
renovate 7dea7afd86
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Update golang Docker tag to v1.20
2023-04-07 01:00:43 +00:00

9 lines
223 B
Docker

FROM golang:1.20
WORKDIR /src
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/serve
FROM scratch
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=0 /src/server ./
CMD ["/server"]