feat: add extra_files

Copy extra files into the image.
This commit is contained in:
Oliver Davies 2023-02-20 23:00:22 +00:00
parent d66f34480a
commit 34810088c3

View file

@ -34,6 +34,9 @@ RUN apt-get update -yqq \
RUN docker-php-ext-install {{ dockerfile.stages.build.extensions.install | join(' ') }}
{% endif %}
{% if dockerfile.stages.build.extra_files %}
COPY --chown=app:app {{ dockerfile.stages.build.extra_files | join(" ") }} ./
{% endif %}
{% for directory in dockerfile.stages.build.extra_directories %}
COPY --chown=app:app {{ directory }} {{ directory }}
{% endfor %}