docker-bake.hcl 498 B

1234567891011121314151617181920212223242526272829
  1. variable "REPO_NAME" {
  2. default = "dunglas/frankenphp"
  3. }
  4. group "default" {
  5. targets = ["bullseye", "alpine"]
  6. }
  7. target "common" {
  8. platforms = ["linux/amd64", "linux/arm64"]
  9. }
  10. #
  11. # FrankenPHP
  12. #
  13. target "bullseye" {
  14. inherits = ["common"]
  15. context = "."
  16. dockerfile = "Dockerfile"
  17. tags = ["${REPO_NAME}:bullseye", "${REPO_NAME}:latest"]
  18. }
  19. target "alpine" {
  20. inherits = ["common"]
  21. context = "."
  22. dockerfile = "Dockerfile.alpine"
  23. tags = ["${REPO_NAME}:alpine"]
  24. }