Run supervisord in CMD

This commit is contained in:
J0WI
2018-06-12 07:56:33 +02:00
committed by Michal Čihař
parent 2d6fd72542
commit 98aa7b80c8
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -75,4 +75,4 @@ COPY run.sh /run.sh
EXPOSE 80
ENTRYPOINT [ "/run.sh" ]
CMD ["phpmyadmin"]
CMD ["supervisord", "-n"]
+1 -3
View File
@@ -17,6 +17,4 @@ chown nobody:nogroup /var/run/php/
touch /var/log/php-fpm.log
chown nobody:nogroup /var/log/php-fpm.log
if [ "$1" = 'phpmyadmin' ]; then
exec supervisord --nodaemon --configuration="/etc/supervisord.conf" --loglevel=info
fi
exec "$@"