yardlight/run.sh
2021-02-18 08:39:38 +01:00

15 lines
199 B
Bash
Executable File

#!/bin/sh
gunicorn --bind 0.0.0.0:80 weblight:app
# if argument(s) given - execute argument(s) in container. Otherwise loop.
if [ "$#" -gt 0 ]; then
exec $@
else
while :;
do
sleep 1
done
fi