Files
DOCKER_PHP_BASE/fmp-alpine/docker-entrypoint.sh
T
Jonatan Rek 085ab7e9b8
Build - Docker Image - PROD / build-apache-amd64 (push) Successful in 1h17m32s
Build - Docker Image - PROD / build-apache-arm64 (push) Canceled after 3m43s
Build - Docker Image - PROD / manifest-apache (push) Canceled after 0s
Progress
2026-10-31 18:29:05 +01:00

18 lines
479 B
Bash

#!/bin/sh
set -e
# Optional background services, only started together with php-fpm so that
# one-off commands (php artisan ..., composer ...) are passed through untouched.
case "$1" in
php-fpm*)
if [ "${ENABLE_CRON:-0}" = "1" ]; then
crond -b -L /var/log/cron/cron.log
fi
if [ "${ENABLE_SUPERVISOR:-0}" = "1" ]; then
supervisord -c /etc/supervisor/supervisord.conf
fi
;;
esac
exec docker-php-entrypoint "$@"