mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
feat(Dockerfile): allow adding extra directories
This commit is contained in:
parent
1e800c0a56
commit
b258b3e034
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue