mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-05 19:05:33 +01:00
feat(Dockerfile): allow adding extra directories
This commit is contained in:
parent
1e800c0a56
commit
b258b3e034
1 changed files with 3 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue