feat(Dockerfile): allow adding extra directories

This commit is contained in:
Oliver Davies 2023-02-14 10:41:51 +00:00
parent 1e800c0a56
commit b258b3e034

View file

@ -24,10 +24,9 @@ RUN apt-get update -yqq \
RUN docker-php-ext-install {{ dockerfile.stages.build.extensions.install | join(' ') }}
{% endif %}
RUN {% for command in dockerfile.stages.build.commands %}
{% if not loop.first %} && {% endif %}
{{ command }}
{%- if not loop.last %} \{% endif %}
{% for directory in dockerfile.stages.build.extra_directories %}
COPY {{ directory }} {{ directory }}
{% endfor %}
{% for command in dockerfile.stages.build.commands %}
RUN {{ command }}