# Download base image ubuntu 20.04 FROM ubuntu:20.04 # LABEL about the custom image LABEL maintainer="aozhiwei@kingsome.cn" LABEL version="0.1" LABEL description="This is custom Docker Image for \ the php Services." # RUN sh -c '/bin/echo -e "\n6\n70" | sh Anaconda3-4.4.0-Linux-x86_64.sh' # 6 70 RUN apt update RUN apt install -y tzdata RUN apt install -y net-tools curl iputils-ping vim mariadb-client redis php php-fpm php-pdo php-mysql php-redis php-mbstring php7.4-curl ENV SERVER_ENV=TEST #php-pecl-libsodium #RUN sh -c '/bin/echo -e "\n6\n70" | apt install -y net-tools iputils-ping mariadb-client php php-fpm' #docker run -d -e SERVER_ENV=TEST -it -v /data:/data -p 9001:9000 --add-host='mysql-host:172.17.0.1' --add-host='redis-host:172.17.0.1' php:7.4 /bin/bash #docker exec -it xxx /bin/bash #service php7.4-fpm start #/etc/php/7.4/fpm/pool.d/www.conf #;listen = /run/php/php7.4-fpm.sock #listen = 172.17.0.2:9000 #/etc/php/7.4/php-fpm.conf #; Default Value: log/php-fpm.log #error_log = /var/log/php7.4-fpm.log #touch /data/php_errors.log #chmod 777 /data/php_errors.log #/etc/php/7.4/php.ini #;error_log = syslog #error_log = /data/php_errors.log #error_reporting = E_ALL #log_errors = On #/etc/hosts #172.17.0.1 mysql-host #172.17.0.1 redis-host