mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-22 18:27:31 +00:00
feat: add root_commands
As well as commands that are run by the `app` user, also specify commands that should be run by the `root` user such as updating the `DocumentRoot` within an Apache virtual host.
This commit is contained in:
parent
22299f1cc6
commit
ae8132f0db
|
@ -45,6 +45,10 @@ COPY --chown=app:app {{ dockerfile.stages.build.extra_files | join(" ") }} ./
|
|||
COPY --chown=app:app {{ directory }} {{ directory }}
|
||||
{% endfor %}
|
||||
|
||||
{% for command in dockerfile.stages.build.root_commands | default([]) %}
|
||||
RUN {{ command | raw }}
|
||||
{% endfor %}
|
||||
|
||||
USER app
|
||||
|
||||
{% for command in dockerfile.stages.build.commands %}
|
||||
|
|
Loading…
Reference in a new issue