summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJonas Kohl2024-09-19 19:33:12 +0200
committerJonas Kohl2024-09-19 19:33:12 +0200
commit2fbe9ad343e82679ba0573a7daa510cfbe488ddf (patch)
tree9b84737a765e510c87193f93aa8a34fea37e3298 /Dockerfile
parent75e9b62da57eb7ce3f9e8a8667a7de59188c221f (diff)
Docker dev and prod separation
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