From f6b0453c230b686d83fc523e52088febffead117 Mon Sep 17 00:00:00 2001 From: gitworkflows <118260833+gitworkflows@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:36:31 +0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com> Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com> --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3a40118..73dfb8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,12 @@ # BUILDPLATFORM is an automatic platform ARG enabled by Docker BuildKit. # Represents the platform where the build is happening, do not mix with # TARGETARCH -FROM docker.io/library/alpine:3.20.3 +FROM docker.io/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d AS builder RUN apk add --no-cache curl iputils bind-tools tcpdump + +FROM docker.io/library/alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d +COPY --from=builder /usr/bin/curl /usr/bin/curl +COPY --from=builder /usr/bin/ping /usr/bin/ping +COPY --from=builder /usr/bin/dig /usr/bin/dig +COPY --from=builder /usr/sbin/tcpdump /usr/sbin/tcpdump ENTRYPOINT ["/usr/bin/curl"]