nopaque/docker-entrypoint.sh

14 lines
226 B
Bash
Raw Normal View History

2019-09-05 16:39:50 +02:00
#!/bin/sh
2019-10-23 14:42:23 +02:00
./wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0
if [ $# -eq 0 ]
then
venv/bin/python -u opaque.py
elif [ $1 == "flask" ]
then
echo "$@"
venv/bin/python -m $@
else
echo "Unknown command"
fi