2023-10-14 15:57:28 +02:00
|
|
|
FROM composer
|
|
|
|
WORKDIR /app
|
|
|
|
|
2023-10-19 21:53:14 +02:00
|
|
|
COPY www/composer.* .
|
2023-10-14 15:57:28 +02:00
|
|
|
RUN composer install
|
|
|
|
|
|
|
|
FROM php:apache
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
|
|
COPY --from=0 /app/ ./
|
|
|
|
RUN chmod -R a+r ./vendor
|
|
|
|
|
|
|
|
RUN a2enmod rewrite
|
|
|
|
RUN a2enmod headers
|
2023-10-16 16:15:24 +02:00
|
|
|
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
|
2023-10-14 15:57:28 +02:00
|
|
|
|
2023-10-19 21:53:14 +02:00
|
|
|
COPY www/ .
|
2023-10-14 15:57:28 +02:00
|
|
|
RUN chmod -R a+r $(ls -I vendor)
|