summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index abd5d04..ccbf6e7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,8 +21,10 @@ RUN docker-php-ext-configure gd \
RUN docker-php-ext-install gd zip pgsql intl
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
-FROM base
+FROM base AS dev
COPY ./000-default.conf /etc/apache2/sites-available/000-default.conf
-COPY ./src /var/www/html
WORKDIR /var/www/html
+
+FROM dev AS prod
+COPY ./src /var/www/html
RUN composer install