fix deploymen

Reviewed-on: http://git.simonis.lol/sites/abiball/pulls/8
This commit is contained in:
2025-01-23 18:15:54 +00:00
parent fb2004f71a
commit ebdcc1d4f5
2 changed files with 75 additions and 2 deletions

View File

@ -1,5 +1,5 @@
FROM composer AS composer
FROM php:8.2-apache
FROM php:apache
COPY .. /var/www/html/
COPY --from=composer /usr/bin/composer /usr/bin/composer
@ -16,4 +16,7 @@ RUN a2enmod rewrite
RUN pecl install apcu && docker-php-ext-enable apcu
WORKDIR /var/www/html
RUN composer install --optimize-autoloader --no-suggest --no-progress
RUN composer install --optimize-autoloader --no-suggest --no-progress
RUN php bin/console tailwind:build
RUN php bin/console asset-map:compile
RUN echo "APP_ENV=prod" > .env.local