Skip to content

Commit

Permalink
Add CA certificates to Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
seniorquico committed Oct 20, 2023
1 parent b1df6b2 commit 7a80410
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM golang:1.21.3-alpine3.18 AS builder
FROM golang:1.21.3-alpine3.18 AS build
WORKDIR /app

COPY go.mod go.sum ./
Expand All @@ -12,8 +12,10 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /app/bin/virtual-kubelet .

FROM scratch AS final

COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=build /etc/ssl/cert.pem /etc/ssl/cert.pem
COPY LICENSE /LICENSE
COPY NOTICE /NOTICE
COPY --from=builder --chown=root:root /app/bin/virtual-kubelet /usr/bin/virtual-kubelet
COPY --from=build --chown=root:root /app/bin/virtual-kubelet /usr/bin/virtual-kubelet

ENTRYPOINT ["/usr/bin/virtual-kubelet"]

0 comments on commit 7a80410

Please sign in to comment.