Browse Source

Change upload/POST limit for PHP.

master
mihasinkec 8 months ago
parent
commit
0c224d5ce1
  1. 4
      Dockerfile

4
Dockerfile

@ -1,7 +1,9 @@
FROM php:7.2-apache
# Use the default production configuration.
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
sed -i 's/^post_max_size.*$/post_max_size=20M/' "$PHP_INI_DIR/php.ini" && \
sed -i 's/^upload_max_filesize.*$/upload_max_filesize=20M/' "$PHP_INI_DIR/php.ini"
RUN docker-php-ext-install pdo_mysql

Loading…
Cancel
Save