From 356b97cbdeb3d8db596790509b2fae277d330c74 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 2 May 2023 22:55:29 +0100 Subject: [PATCH] refactor(docker-compose): simplify the `build` ...stage Hard-code more of these values as they're the same for all projects. --- templates/php/Dockerfile.twig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/php/Dockerfile.twig b/templates/php/Dockerfile.twig index 07ee4ff..85e8bc0 100644 --- a/templates/php/Dockerfile.twig +++ b/templates/php/Dockerfile.twig @@ -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 /