diff options
author | Jonas Kohl | 2024-09-19 19:33:12 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-19 19:33:12 +0200 |
commit | 2fbe9ad343e82679ba0573a7daa510cfbe488ddf (patch) | |
tree | 9b84737a765e510c87193f93aa8a34fea37e3298 /Dockerfile | |
parent | 75e9b62da57eb7ce3f9e8a8667a7de59188c221f (diff) |
Docker dev and prod separation
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |