Use slim php 8.4 image.
This commit is contained in:
@@ -7,15 +7,11 @@ RUN composer install --no-dev --no-scripts --ignore-platform-reqs
|
|||||||
RUN composer dumpautoload --optimize
|
RUN composer dumpautoload --optimize
|
||||||
|
|
||||||
#Use prebuilt image
|
#Use prebuilt image
|
||||||
FROM cs-git.ddnss.de/docker/php-apache-7-4:latest AS final
|
FROM cs-git.ddnss.de/docker/nginx-fpm-8-4:latest AS final
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
COPY --from=composer-build /var/www/html /var/www/html
|
COPY --from=composer-build /var/www/html /var/www/html
|
||||||
|
|
||||||
RUN sed -ri -e 's!/var/www/!/var/www/html!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
RUN sed -ri -e 's!upload_max_filesize = 2M!upload_max_filesize = 8M!g' /etc/php84/conf.d/custom.ini
|
||||||
RUN sed -ri -e 's!AllowOverride None!AllowOverride All!g' /etc/apache2/apache2.conf
|
|
||||||
|
|
||||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
|
||||||
RUN sed -ri -e 's!upload_max_filesize = 2M!upload_max_filesize = 8M!g' $PHP_INI_DIR/php.ini
|
|
||||||
|
|
||||||
RUN chown -R www-data:www-data /var/www/html
|
RUN chown -R www-data:www-data /var/www/html
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user