From d399c61efeb96c5000e9661f1ffe959ac58793a4 Mon Sep 17 00:00:00 2001 From: Alex Ellwein Date: Fri, 30 Jun 2023 17:43:08 +0200 Subject: [PATCH] feat: add Alpine certificates into release image --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5466327..b287751 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,10 @@ COPY . . ARG TARGETOS TARGETARCH RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o webhook -ldflags '-w -extldflags "-static"' . +FROM alpine:latest as certs +RUN apk add -U --no-cache ca-certificates + FROM busybox:1.36.1-glibc +COPY --from=certs /etc/ssl/certs /etc/ssl/certs COPY --from=build /workspace/webhook /usr/local/bin/webhook ENTRYPOINT ["webhook"]