Try publishing static binaries as distroless containers

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
Vasyl Gello 2024-07-25 10:17:05 +03:00
parent b534d1205e
commit 3be03c793f
2 changed files with 36 additions and 6 deletions

9
Dockerfile.static Normal file
View file

@ -0,0 +1,9 @@
FROM --platform=linux/amd64 gcr.io/distroless/static
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
COPY --chown=0:0 --chmod=0755 yggstack-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}-static /bin/yggstack
ENTRYPOINT [ "/bin/yggstack" ]