| 123456789101112131415161718192021222324 |
- # Bake definition: multi-arch static image for the BFF + WASM client.
- # Usage: `docker buildx bake` (both arches) or
- # `docker buildx bake image --set image.platform=linux/amd64` (one arch).
- variable "TAG" {
- default = "latest"
- }
- variable "SOURCE_DATE_EPOCH" {
- default = "0"
- }
- group "default" {
- targets = ["image"]
- }
- target "image" {
- dockerfile = "Dockerfile"
- context = "."
- platforms = ["linux/amd64", "linux/arm64"]
- tags = ["oauth2-wasm-demo-client:${TAG}"]
- args = {
- SOURCE_DATE_EPOCH = "${SOURCE_DATE_EPOCH}"
- }
- }
|