refactor(docker-compose): simplify the build

...stage

Hard-code more of these values as they're the same for all projects.
This commit is contained in:
Oliver Davies 2023-05-02 22:55:29 +01:00
parent 33103417de
commit 356b97cbde

View file

@ -19,10 +19,9 @@ ENV PATH="${PATH}:{{ project_root }}/bin:{{ project_root }}/vendor/bin"
COPY --chown=app:app composer.* ./
{% if dockerfile.stages.build %}
################################################################################
FROM {{ dockerfile.stages.build.extends }} AS build
FROM base AS build
USER root
@ -54,7 +53,6 @@ USER app
{% for command in dockerfile.stages.build.commands %}
RUN {{ command }}
{% endfor %}
{% endif %}
COPY --chown=app:app tools/docker/images/php/root /