You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
663 B

FROM php:7.2-apache
# Use the default production configuration.
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
# Enable rewrite module for httpd.
RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
COPY . /var/www/html
# Set 20M upload size limit for mp3 uploads
RUN sed -i "s/<VirtualHost \*:80>/<VirtualHost \*:80>\n\tLimitRequestBody 20480000\n/" /etc/apache2/sites-enabled/000-default.conf