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 %}
{% set anchors = [
"apache" in php.version ? "*default-proxy" : "",
"apache" in php.version ? "*default-proxy" : null,
"*default-app",
] -%}
php:
<<: [{{ anchors | join(", ") }}]
<<: [{{ anchors | filter(item => item is not null) | join(", ") }}]
build:
context: .
target: build