From 0fe6e6d0a1b33234ee0a0ff27320e2dbb01f2706 Mon Sep 17 00:00:00 2001 From: QuantumEnigmaa Date: Mon, 20 May 2024 11:07:39 +0200 Subject: [PATCH] update dockerfile to use binary needed in the code --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index df8261b2..ff38b994 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,9 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o ma # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM gcr.io/distroless/static:nonroot +FROM alpine:3.19.1 +RUN apk add --no-cache ca-certificates +RUN apk add apache2-utils WORKDIR / COPY --from=builder /workspace/manager . USER 65532:65532