From 2afacdd1a3a814a20fde522e0a6e8e7fc0c9f7d7 Mon Sep 17 00:00:00 2001 From: zstadler Date: Tue, 18 Jun 2024 15:07:24 +0300 Subject: [PATCH] Resolve #170 again using gcr.io/distroless/static (#172) * Use gcr.io/distroless/static Remove root_tmp.tgz * Certificates are included in the base image --- Dockerfile | 4 +--- root_tmp.tgz | Bin 108 -> 0 bytes 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 root_tmp.tgz diff --git a/Dockerfile b/Dockerfile index e528076..4afd3bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,7 @@ COPY . /workspace WORKDIR /workspace ENV CGO_ENABLED=0 RUN go build -o /workspace/go-pmtiles -FROM scratch +FROM gcr.io/distroless/static COPY --from=builder /workspace/go-pmtiles /go-pmtiles -COPY --from=builder etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -ADD root_tmp.tgz / EXPOSE 8080 ENTRYPOINT ["/go-pmtiles"] diff --git a/root_tmp.tgz b/root_tmp.tgz deleted file mode 100644 index 84f9558b774e77544add0187e24e4bd8222fe867..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 108 zcmb2|=3oE==C|hz`3@NfusGNswLh>t;kT^~11sz2`hrs;0j*ifZcZ-imi~TRb?%xe zLVLf@ylnX0dR=a3RCf1yy;GN>PknuJeA)HlJKN@5-nQ=X?RVk)5JQ1v{TDW2D^5oS H4F(1Pb+Rn^