Sfoglia il codice sorgente

Dockerfile: DOCKER_STATIC arg

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 2 anni fa
parent
commit
b19c11621a
2 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 1 0
      Dockerfile
  2. 4 0
      docker-bake.hcl

+ 1 - 0
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

+ 4 - 0
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
   }
 }