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:
Oliver Davies 2023-03-10 23:11:23 +00:00
parent 22299f1cc6
commit ae8132f0db

View file

@ -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 %}