11group "default" {
2- targets = [" build-php" , " php" , " php-fpm " , " console-zip " , " console " , " php-fpm- dev" ]
2+ targets = [" build-php" , " php" , " php-dev" ]
33}
44
55variable "CPU" {
@@ -23,9 +23,9 @@ variable "PHP_COMPILATION_FLAGS" {
2323
2424target "build-php" {
2525 dockerfile = " php-${ PHP_VERSION } /Dockerfile"
26- target = " build-environment"
27- tags = [" bref/${ CPU_PREFIX } build-php-${ PHP_VERSION } " ]
28- args = {
26+ target = " build-environment"
27+ tags = [" bref/${ CPU_PREFIX } build-php-${ PHP_VERSION } " ]
28+ args = {
2929 " IMAGE_VERSION_SUFFIX" = " ${ IMAGE_VERSION_SUFFIX } "
3030 " PHP_COMPILATION_FLAGS" = " ${ PHP_COMPILATION_FLAGS } "
3131 }
@@ -34,9 +34,9 @@ target "build-php" {
3434
3535target "php" {
3636 dockerfile = " php-${ PHP_VERSION } /Dockerfile"
37- target = " function"
38- tags = [" bref/${ CPU_PREFIX } php-${ PHP_VERSION } " ]
39- args = {
37+ target = " function"
38+ tags = [" bref/${ CPU_PREFIX } php-${ PHP_VERSION } " ]
39+ args = {
4040 " IMAGE_VERSION_SUFFIX" = " ${ IMAGE_VERSION_SUFFIX } "
4141 " PHP_COMPILATION_FLAGS" = " ${ PHP_COMPILATION_FLAGS } "
4242 }
@@ -46,58 +46,18 @@ target "php" {
4646 platforms = [" ${ DOCKER_PLATFORM } " ]
4747}
4848
49- target "php-fpm " {
49+ target "php-dev " {
5050 dockerfile = " php-${ PHP_VERSION } /Dockerfile"
51- target = " fpm "
52- tags = [" bref/${ CPU_PREFIX } php-${ PHP_VERSION } -fpm " ]
53- args = {
51+ target = " dev "
52+ tags = [" bref/${ CPU_PREFIX } php-${ PHP_VERSION } -dev " ]
53+ args = {
5454 " IMAGE_VERSION_SUFFIX" = " ${ IMAGE_VERSION_SUFFIX } "
55+ " PHP_COMPILATION_FLAGS" = " ${ PHP_COMPILATION_FLAGS } "
5556 }
5657 contexts = {
5758 " bref/${CPU_PREFIX}build-php-${PHP_VERSION}" = " target:build-php"
58- " bref/${CPU_PREFIX}php-${PHP_VERSION}" = " target:php"
59- }
60- platforms = [" ${ DOCKER_PLATFORM } " ]
61- }
62-
63- target "console-zip" {
64- context = " layers/console"
65- target = " console-zip"
66- tags = [" bref/console-zip" ]
67- args = {
68- PHP_VERSION = " ${ PHP_VERSION } "
69- CPU_PREFIX = " ${ CPU_PREFIX } "
70- }
71- platforms = [" ${ DOCKER_PLATFORM } " ]
72- }
73-
74- target "console" {
75- context = " layers/console"
76- target = " console"
77- tags = [" bref/${ CPU_PREFIX } php-${ PHP_VERSION } -console" ]
78- args = {
79- PHP_VERSION = " ${ PHP_VERSION } "
80- CPU_PREFIX = " ${ CPU_PREFIX } "
81- }
82- contexts = {
83- " bref/${CPU_PREFIX}build-php-${PHP_VERSION}" = " target:build-php"
84- " bref/${CPU_PREFIX}php-${PHP_VERSION}" = " target:php"
85- }
86- platforms = [" ${ DOCKER_PLATFORM } " ]
87- }
88-
89- target "php-fpm-dev" {
90- context = " layers/fpm-dev"
91- tags = [" bref/${ CPU_PREFIX } php-${ PHP_VERSION } -fpm-dev" ]
92- args = {
93- PHP_VERSION = " ${ PHP_VERSION } "
94- CPU_PREFIX = " ${ CPU_PREFIX } "
95- }
96- contexts = {
97- " bref/${CPU_PREFIX}build-php-${PHP_VERSION}" = " target:build-php"
98- " bref/${CPU_PREFIX}php-${PHP_VERSION}" = " target:php"
99- " bref/${CPU_PREFIX}php-${PHP_VERSION}-fpm" = " target:php-fpm"
100- " bref/local-api-gateway" = " docker-image://bref/local-api-gateway:latest"
59+ " bref/${CPU_PREFIX}php-${PHP_VERSION}" = " target:php"
60+ " bref/local-api-gateway" = " docker-image://bref/local-api-gateway:latest"
10161 }
10262 platforms = [" ${ DOCKER_PLATFORM } " ]
10363}
0 commit comments