From fd10da24533e27f95e0fa703896465b2ead8c5fb Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 9 Mar 2023 14:38:48 +0100 Subject: [PATCH] Containerfile: use scratch-with-cacerts directly --- Containerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index 647bdd5..8e27c43 100644 --- a/Containerfile +++ b/Containerfile @@ -1,5 +1,3 @@ -FROM ghcr.io/mariouhrik/scratch-with-cacerts as certs - FROM docker.io/library/golang:1.20.1 as build COPY . /certs-test @@ -7,8 +5,7 @@ WORKDIR /certs-test RUN CGO_ENABLED=0 go build -v . -FROM scratch +FROM ghcr.io/mariouhrik/scratch-with-cacerts COPY --from=build /certs-test/certs-test /certs-test -COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ ENTRYPOINT ["/certs-test"]