diff --git a/Dockerfile b/Dockerfile index 6d13cacf74..43c3b32fc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ ARG VPNKIT_VERSION=0.5.0 ARG CROSS="false" ARG SYSTEMD="false" ARG DEBIAN_FRONTEND=noninteractive +ARG DOCKER_STATIC=1 # cross compilation helper FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx diff --git a/docker-bake.hcl b/docker-bake.hcl index 42aebeff4f..fc9d0b7630 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -1,6 +1,9 @@ variable "BUNDLES_OUTPUT" { default = "./bundles" } +variable "DOCKER_STATIC" { + default = "1" +} variable "DOCKER_CROSSPLATFORMS" { default = "" } @@ -9,6 +12,7 @@ target "_common" { args = { BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1 APT_MIRROR = "cdn-fastly.deb.debian.org" + DOCKER_STATIC = DOCKER_STATIC } }