mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
add nginx-php image
This commit is contained in:
8
nginx-php/rootfs/etc/s6.d/php/setup
Normal file
8
nginx-php/rootfs/etc/s6.d/php/setup
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
mkdir -p /php/php-fpm.d /php/logs /php/run
|
||||
|
||||
sed -i -e 's/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE' \
|
||||
-e 's/<MEMORY_LIMIT>/$PHP_MEMORY_LIMIT' \
|
||||
/usr/local/etc/php-fpm.conf
|
||||
|
||||
chown -R $UID:GID /php /usr/local/etc/php-fpm.conf
|
Reference in New Issue
Block a user