Updating docker container with the new usage flag

This commit is contained in:
gar
2016-08-09 20:47:09 -07:00
committed by Philippe Vaucher
parent 9bcc989149
commit bce9f99b0b
3 changed files with 24 additions and 18 deletions

View File

@@ -1,13 +1,6 @@
#!/bin/sh
#!/bin/sh -x
# Set password
echo "root:${PASSWORD}" | chpasswd
if [ -z ${PORT} ]
then
echo "Starting on default port: 57575"
/opt/app/butterfly.server.py --unsecure --host=0.0.0.0
else
echo "Starting on port: ${PORT}"
/opt/app/butterfly.server.py --unsecure --host=0.0.0.0 --port=${PORT}
fi
/opt/app/butterfly.server.py $@