From 70db524664b328066b16f7ecbe92f647c56ffc62 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 24 Nov 2021 21:23:16 +0100 Subject: [PATCH] docker: allow sh run --- docker-entry.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) mode change 100644 => 100755 docker-entry.sh diff --git a/docker-entry.sh b/docker-entry.sh old mode 100644 new mode 100755 index ba9b0e7..bf5c4e5 --- a/docker-entry.sh +++ b/docker-entry.sh @@ -1,7 +1,12 @@ #! /bin/sh -if [ -z "$1" ] || [ "$@" = "run" ]; then +if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then + exec $@ + +elif [ -z "$1" ] || [ "$@" = "run" ]; then gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss + else morss $@ + fi