Skip to content

Commit 98aa7b8

Browse files
J0WInijel
authored andcommitted
Run supervisord in CMD
1 parent 2d6fd72 commit 98aa7b8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ COPY run.sh /run.sh
7575
EXPOSE 80
7676

7777
ENTRYPOINT [ "/run.sh" ]
78-
CMD ["phpmyadmin"]
78+
CMD ["supervisord", "-n"]

run.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ chown nobody:nogroup /var/run/php/
1717
touch /var/log/php-fpm.log
1818
chown nobody:nogroup /var/log/php-fpm.log
1919

20-
if [ "$1" = 'phpmyadmin' ]; then
21-
exec supervisord --nodaemon --configuration="/etc/supervisord.conf" --loglevel=info
22-
fi
20+
exec "$@"

0 commit comments

Comments
 (0)