Add docker deployment
Some checks failed
build docker image / docker-build (push) Has been cancelled
Some checks failed
build docker image / docker-build (push) Has been cancelled
This commit is contained in:
parent
9fff8931f9
commit
add34fcb23
10
Dockerfile
10
Dockerfile
@ -58,7 +58,15 @@ RUN sed -i 's/listen = 127.0.0.1:9000/listen = \/run\/php\/php-fpm.sock/' /usr/l
|
||||
&& sed -i 's/;listen.mode = 0660/listen.mode = 0660/' /usr/local/etc/php-fpm.d/www.conf \
|
||||
&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \
|
||||
&& sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 200M/' /usr/local/etc/php/php.ini \
|
||||
&& sed -i 's/post_max_size = 8M/post_max_size = 200M/' /usr/local/etc/php/php.ini
|
||||
&& sed -i 's/post_max_size = 8M/post_max_size = 200M/' /usr/local/etc/php/php.ini \
|
||||
&& sed -i 's/error_log = \/proc\/self\/fd\/2/error_log = \/proc\/self\/fd\/2/' /usr/local/etc/php-fpm.d/docker.conf \
|
||||
&& sed -i 's/;error_log = syslog/error_log = \/proc\/self\/fd\/2/' /usr/local/etc/php-fpm.d/www.conf \
|
||||
&& sed -i 's/;access.log = \/proc\/self\/fd\/2/access.log = \/proc\/self\/fd\/2/' /usr/local/etc/php-fpm.d/www.conf \
|
||||
&& sed -i 's/;catch_workers_output = yes/catch_workers_output = yes/' /usr/local/etc/php-fpm.d/www.conf \
|
||||
&& sed -i 's/;php_admin_flag\[log_errors\] = on/php_admin_flag[log_errors] = on/' /usr/local/etc/php-fpm.d/www.conf \
|
||||
&& sed -i 's/;php_admin_value\[error_log\] = .*/php_admin_value[error_log] = \/proc\/self\/fd\/2/' /usr/local/etc/php-fpm.d/www.conf \
|
||||
#&& sed -i 's/display_errors = Off/display_errors = On/' /usr/local/etc/php/php.ini \
|
||||
&& sed -i 's/log_errors = Off/log_errors = On/' /usr/local/etc/php/php.ini
|
||||
|
||||
# Copy configurations
|
||||
COPY ./docker/conf/etc /etc
|
||||
|
Loading…
x
Reference in New Issue
Block a user