Добавить 'wp/Dockerfile'

This commit is contained in:
2021-06-18 08:12:25 +00:00
parent f0c1f2d0d4
commit 5818bd5339

8
wp/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM wordpress:5.7.2
RUN cd /usr/local/etc/php
RUN cp php.ini-production php.ini
RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 256M/' php.ini
RUN sed -i 's/max_input_time = 60/max_input_time = 300/' php.ini
RUN sed -i 's/memory_limit = 128M/memory_limit = 256M/' php.ini
RUN sed -i 's/max_execution_time = 30/max_execution_time = 300/' php.ini
RUN sed -i 's/post_max_size = 8M/post_max_size = 512M/' php.ini