voila/startup.sh

13 lines
269 B
Bash
Raw Normal View History

2023-01-05 00:07:49 +00:00
#!/bin/sh
# Nofail the cd just in case the image isn't up yet
cd $VOILA_DIRECTORY || true
2023-01-05 00:07:49 +00:00
if [-e "$REQUIREMENTS_PATH" ]; then
pip install -r "$REQUIREMENTS_PATH"
else
pip install voila==$VOILA_VERSION
fi
python -mvoila --no-browser --port=80 $VOILA_OPTIONS