Ctrl K
ComunidadGuías…

docker-bake.hcl

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
target "docker-metadata-action" {}

target "_common" {
  context    = "."
  dockerfile = "Dockerfile"
  platforms  = ["linux/amd64", "linux/arm64"]
}

target "runtime-default" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime"
  args = {
    HEADROOM_EXTRAS = "proxy,bedrock,redis"
    RUNTIME_USER    = "nonroot"
  }
}

target "runtime" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime"
  args = {
    HEADROOM_EXTRAS = "proxy,bedrock,redis"
    RUNTIME_USER    = "root"
    RUNTIME_HOME    = "/root"
  }
}

target "runtime-nonroot" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime"
  args = {
    HEADROOM_EXTRAS = "proxy,bedrock,redis"
    RUNTIME_USER    = "nonroot"
  }
}

target "runtime-code" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime"
  args = {
    HEADROOM_EXTRAS = "proxy,code,bedrock,redis"
    RUNTIME_USER    = "root"
    RUNTIME_HOME    = "/root"
  }
}

target "runtime-code-nonroot" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime"
  args = {
    HEADROOM_EXTRAS = "proxy,code,bedrock,redis"
    RUNTIME_USER    = "nonroot"
  }
}

target "runtime-slim" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime-slim"
  args = {
    HEADROOM_EXTRAS = "proxy,bedrock,redis"
    RUNTIME_USER    = "root"
    RUNTIME_HOME    = "/root"
  }
}

target "runtime-slim-nonroot" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime-slim"
  args = {
    HEADROOM_EXTRAS = "proxy,bedrock,redis"
    RUNTIME_USER    = "nonroot"
  }
}

target "runtime-code-slim" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime-slim"
  args = {
    HEADROOM_EXTRAS = "proxy,code,bedrock,redis"
    RUNTIME_USER    = "root"
    RUNTIME_HOME    = "/root"
  }
}

target "runtime-code-slim-nonroot" {
  inherits = ["_common", "docker-metadata-action"]
  target   = "runtime-slim"
  args = {
    HEADROOM_EXTRAS = "proxy,code,bedrock,redis"
    RUNTIME_USER    = "nonroot"
  }
}