2020-07-08 11:56:33 +00:00
|
|
|
FROM php:7.2-apache
|
|
|
|
|
2020-07-29 11:00:16 +00:00
|
|
|
# Use the default production configuration.
|
2020-07-08 11:56:33 +00:00
|
|
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
|
|
|
|
2020-07-08 14:04:28 +00:00
|
|
|
RUN docker-php-ext-install pdo_mysql
|
|
|
|
|
2020-07-08 12:55:35 +00:00
|
|
|
# Enable rewrite module for httpd.
|
2020-07-08 12:59:27 +00:00
|
|
|
RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
|
2020-07-08 12:55:35 +00:00
|
|
|
|
2020-07-08 11:56:33 +00:00
|
|
|
COPY . /var/www/html
|
|
|
|
|
2020-07-29 11:00:16 +00:00
|
|
|
# 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
|