From 0b8522451f378cafbc1719fa42b055055cf0e838 Mon Sep 17 00:00:00 2001 From: Mikalai Konan Date: Sat, 4 Dec 2021 23:12:38 +0300 Subject: [PATCH] base docker image --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5898297..5c611e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,9 @@ FROM golang:buster as builder COPY . /src -RUN cd /src && go build -o /src/bin/proxy +RUN cd /src && go build -ldflags '-linkmode external -extldflags -static -w' -o /src/bin/proxy -FROM gcr.io/distroless/base +FROM scratch COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /src/bin/proxy /bin/proxy