From 2fbe9ad343e82679ba0573a7daa510cfbe488ddf Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Thu, 19 Sep 2024 19:33:12 +0200 Subject: Docker dev and prod separation --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Dockerfile') 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 -- cgit v1.2.3