Rearrange Dockerfile

This commit is contained in:
Florian Brinker 2022-03-19 23:32:56 +01:00
parent 15155495c7
commit 803712591e

View File

@ -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