From 08800b53581ffdeac0e51cc4e7488eb02a95c8cf Mon Sep 17 00:00:00 2001 From: MaheshYadlapati Date: Sun, 24 May 2026 15:52:21 +0530 Subject: [PATCH] fix: replace Alpine with distroless to eliminate BusyBox CVEs --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b7d67b894..8c47f3bc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,12 +9,11 @@ RUN go mod download COPY . . RUN SINGLE_TARGET=true make release -FROM alpine:3.21.2 +FROM gcr.io/distroless/static AS runner ARG OS="linux" ARG ARCH="amd64" WORKDIR /app COPY --from=builder /go/src/app/bin/driftctl_${OS}_${ARCH}/driftctl /bin/driftctl -RUN chmod +x /bin/driftctl ENTRYPOINT ["/bin/driftctl"]