Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/_base/_twig/docker-compose.yml/service/console.yml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
build:
context: ./
dockerfile: .my127ws/docker/image/console/Dockerfile
args: {{ to_nice_yaml(@('services.console.build.args')|default({}), 2, 8) }}
{% if @('app.build') == 'dynamic' %}
entrypoint: [/entrypoint.dynamic.sh]
command: [sleep, infinity]
Expand All @@ -22,6 +23,7 @@ services:
# deprecated, a later workspace release will disable by default
- traefik.enable=false
environment: {{ to_nice_yaml(deep_merge([
@('app.build') == 'dynamic' ? @('services.console.build.args')|default({}) : [],
@('services.php-base.environment'),
@('services.php-base.environment_dynamic'),
@('services.console.environment'),
Expand Down
7 changes: 7 additions & 0 deletions src/_base/docker/image/console/Dockerfile.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ RUN apt-get update -qq \
&& rm -rf /var/lib/apt/lists/*
{% endif %}

{% set build_args=@('services.console.build.args')|default({})|filter(v => v is not empty) %}
{% if build_args %}
{% for name, value in build_args %}
ARG {{ name }}
{% endfor %}
{% endif %}

ENV APP_MODE={{ @('app.mode') }} \
APP_BUILD={{ @('app.build') }} \
ASSETS_DIR={{ @('assets.local') }}
Expand Down