mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-08 16:15:03 +00:00
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:
parent
33103417de
commit
356b97cbde
|
@ -19,10 +19,9 @@ ENV PATH="${PATH}:{{ project_root }}/bin:{{ project_root }}/vendor/bin"
|
||||||
|
|
||||||
COPY --chown=app:app composer.* ./
|
COPY --chown=app:app composer.* ./
|
||||||
|
|
||||||
{% if dockerfile.stages.build %}
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
FROM {{ dockerfile.stages.build.extends }} AS build
|
FROM base AS build
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
@ -54,7 +53,6 @@ USER app
|
||||||
{% for command in dockerfile.stages.build.commands %}
|
{% for command in dockerfile.stages.build.commands %}
|
||||||
RUN {{ command }}
|
RUN {{ command }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
COPY --chown=app:app tools/docker/images/php/root /
|
COPY --chown=app:app tools/docker/images/php/root /
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue