-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.1.8.0
executable file
·29 lines (25 loc) · 993 Bytes
/
Dockerfile.1.8.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Tag 1.8.0 Files size: 424MB (At time of creating talk)
# Adding a staging stage
FROM php:7.4-rc-apache as builder-base
ENV APACHE_DOCUMENT_ROOT /var/www/html/public/
ADD config/sites-available/000-default.conf \
/etc/apache2/sites-available/000-default.conf
FROM composer:1.7 as staging-vendor
COPY site/composer.json composer.json
RUN composer install -o \
--ignore-platform-reqs \
--no-interaction \
--prefer-dist \
--no-dev && \
composer clearcache
FROM builder-base as staging
COPY --from=staging-vendor /app/ /var/www/html/
FROM composer:1.7 as dev-vendor
COPY site/composer.json composer.json
RUN composer install \
--ignore-platform-reqs \
--no-interaction \
--prefer-dist && \
composer clearcache
FROM builder-base as development
COPY --from=dev-vendor /app/ /var/www/html/