Skip to content

Commit

Permalink
Increase upload limit and add correct permissions for wp-content
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Defty committed Apr 27, 2020
1 parent c0c80eb commit a4051a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM php:7.3-apache

COPY /config/php.ini /usr/local/etc/php

RUN apt-get update && apt-get install -y wget libpng-dev libjpeg-dev gnupg default-mysql-client nano less && rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd \
&& docker-php-ext-install gd mysqli
Expand Down
5 changes: 5 additions & 0 deletions config/php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
file_uploads = On
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RewriteRule . /index.php [L]
EOF

chown "www-data:www-data" .htaccess
chown "www-data:www-data" wp-content

c=1
until mysqladmin ping -h"db" --silent &> /dev/null
Expand Down

0 comments on commit a4051a2

Please sign in to comment.