Skip to content

Commit

Permalink
feat: add Alpine certificates into release image
Browse files Browse the repository at this point in the history
  • Loading branch information
aellwein committed Jun 30, 2023
1 parent dbe8af1 commit d399c61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit d399c61

Please sign in to comment.