fix: Commands should be separated by newlines

This commit is contained in:
Oliver Davies 2023-01-19 22:40:09 +00:00
parent 076d994baf
commit 4a575c7d14

View file

@ -26,8 +26,9 @@ RUN docker-php-ext-install {{ dockerfile.stages.build.extensions.install | join(
RUN {% for command in dockerfile.stages.build.commands %} RUN {% for command in dockerfile.stages.build.commands %}
{% if not loop.first %} && {% endif %} {% if not loop.first %} && {% endif %}
{{- command }} {{ command }}
{%- if not loop.last %} \{% endif %} {%- if not loop.last %} \{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
@ -40,8 +41,9 @@ COPY . .
RUN {% for command in dockerfile.stages.test.commands -%} RUN {% for command in dockerfile.stages.test.commands -%}
{% if not loop.first %} && {% endif %} {% if not loop.first %} && {% endif %}
{{- command }} {{ command }}
{%- if not loop.last %} \{% endif %} {%- if not loop.last %} \{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}