From 803712591eeb2115a85d53447e8a35dc4ad3c6dd Mon Sep 17 00:00:00 2001 From: Florian Brinker Date: Sat, 19 Mar 2022 23:32:56 +0100 Subject: [PATCH] Rearrange Dockerfile --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a8d9996..0930fa2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,16 +6,16 @@ RUN docker-php-ext-install zip WORKDIR /var/www/html +# Application +COPY --from=composer:2 /usr/bin/composer /usr/bin/composer +COPY composer.json composer.json +COPY composer.lock composer.lock +RUN composer install --no-dev + COPY public/ public COPY src/ src COPY app.php app.php COPY README.md README.md -COPY composer.json composer.json -COPY composer.lock composer.lock - -# Application -COPY --from=composer:2 /usr/bin/composer /usr/bin/composer -RUN composer install --no-dev # Apache COPY docker/vhost.conf /etc/apache2/sites-available/project.conf