From 1e800c0a56555eeada116278c152173a83af9bda Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 14 Feb 2023 10:41:08 +0000 Subject: [PATCH] refactor: run each command in a separate layer This makes it easier to debug from which command an error might be coming from. --- templates/Dockerfile.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/Dockerfile.twig b/templates/Dockerfile.twig index dca83e7..3a557ce 100644 --- a/templates/Dockerfile.twig +++ b/templates/Dockerfile.twig @@ -29,6 +29,8 @@ RUN {% for command in dockerfile.stages.build.commands %} {{ command }} {%- if not loop.last %} \{% endif %} +{% for command in dockerfile.stages.build.commands %} +RUN {{ command }} {% endfor %} {% endif %}