From 4a575c7d1491f21282bf87846fc4f2f73d33b0be Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 19 Jan 2023 22:40:09 +0000 Subject: [PATCH] fix: Commands should be separated by newlines --- templates/Dockerfile.twig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/Dockerfile.twig b/templates/Dockerfile.twig index 4a54e84..0d6419b 100644 --- a/templates/Dockerfile.twig +++ b/templates/Dockerfile.twig @@ -26,8 +26,9 @@ RUN docker-php-ext-install {{ dockerfile.stages.build.extensions.install | join( RUN {% for command in dockerfile.stages.build.commands %} {% if not loop.first %} && {% endif %} -{{- command }} +{{ command }} {%- if not loop.last %} \{% endif %} + {% endfor %} {% endif %} @@ -40,8 +41,9 @@ COPY . . RUN {% for command in dockerfile.stages.test.commands -%} {% if not loop.first %} && {% endif %} -{{- command }} +{{ command }} {%- if not loop.last %} \{% endif %} + {% endfor %} {% endif %}