mirror of
https://github.com/yggdrasil-network/yggstack.git
synced 2025-04-27 21:55:07 +03:00
Try publishing static binaries as distroless containers
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
parent
b534d1205e
commit
3be03c793f
2 changed files with 36 additions and 6 deletions
9
Dockerfile.static
Normal file
9
Dockerfile.static
Normal 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" ]
|
Loading…
Add table
Add a link
Reference in a new issue