202009 This dockerfile runs php74-fpm daemonized by supervisor.
Image name: 24hoursmedia/pfpm74trift
docker-compose
./build.sh
./run.sh
You can set the following environment variables to configure php at startup:
I.e. in docker-compose.yml:
environment:
php_max_input_vars: 2000
# set to 1 to include imagick libs and php extension
ARG WITH_IMAGICK=1
# set to 1 to include the icu patch
ARG WITH_ICONV_PATCH=0
# include composer acceleration (disable on prod)
ARG WITH_PRESTISSIMO=1
You can add applications to supervisor to run daemonized. For this, place a file 'myworker.ini' in /etc/supervisor/conf.d
I.e. in your dockerfile:
FROM 24hoursmedia/pfpm74trift:latest
COPY conf/supervisor/worker.ini /etc/supervisor/conf.d/worker.ini
worker.ini:
[program:app-worker]
command=/bin/sleep 10
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autostart=true
autorestart=true
startretries=1999999999
Content type
Image
Digest
Size
77.2 MB
Last updated
almost 6 years ago
docker pull 24hoursmedia/pfpm74trift