morss/docker-entry.sh

13 lines
242 B
Bash
Raw Normal View History

#! /bin/sh
2021-11-24 20:23:16 +00:00
if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then
exec $@
elif [ -z "$1" ] || [ "$@" = "run" ]; then
2021-11-25 21:43:40 +00:00
gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss
2021-11-24 20:23:16 +00:00
else
morss $@
2021-11-24 20:23:16 +00:00
fi