docker-bake.hcl 551 B

123456789101112131415161718192021222324
  1. # Bake definition: multi-arch static image for the BFF + WASM client.
  2. # Usage: `docker buildx bake` (both arches) or
  3. # `docker buildx bake image --set image.platform=linux/amd64` (one arch).
  4. variable "TAG" {
  5. default = "latest"
  6. }
  7. variable "SOURCE_DATE_EPOCH" {
  8. default = "0"
  9. }
  10. group "default" {
  11. targets = ["image"]
  12. }
  13. target "image" {
  14. dockerfile = "Dockerfile"
  15. context = "."
  16. platforms = ["linux/amd64", "linux/arm64"]
  17. tags = ["oauth2-wasm-demo-client:${TAG}"]
  18. args = {
  19. SOURCE_DATE_EPOCH = "${SOURCE_DATE_EPOCH}"
  20. }
  21. }