refactor: run each command in a separate layer

This makes it easier to debug from which command an error might be
coming from.
This commit is contained in:
Oliver Davies 2023-02-14 10:41:08 +00:00
parent fa83cfee63
commit 1e800c0a56

View file

@ -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 %}