fix(docker-compose): remove empty anchors

This commit is contained in:
Oliver Davies 2023-06-11 01:07:30 +01:00
parent 7af6ec5d8a
commit db76011b91

View file

@ -44,11 +44,11 @@ services:
{% if "php" == language %} {% if "php" == language %}
{% set anchors = [ {% set anchors = [
"apache" in php.version ? "*default-proxy" : "", "apache" in php.version ? "*default-proxy" : null,
"*default-app", "*default-app",
] -%} ] -%}
php: php:
<<: [{{ anchors | join(", ") }}] <<: [{{ anchors | filter(item => item is not null) | join(", ") }}]
build: build:
context: . context: .
target: build target: build