Rearrange Dockerfile
This commit is contained in:
parent
15155495c7
commit
803712591e
12
Dockerfile
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user