mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-02 05:47:32 +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.* ./
|
||||
|
||||
{% 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 /
|
||||
|
||||
|
|
Loading…
Reference in a new issue