adding server port parameter

This commit is contained in:
sekka1
2015-01-27 11:06:58 -08:00
parent 366ba5a67b
commit 7ec715cc38
2 changed files with 10 additions and 1 deletions

View File

@@ -13,4 +13,6 @@ RUN python setup.py install
ADD docker/run.sh /opt/run.sh
RUN chmod 777 /opt/run.sh
EXPOSE 57575
CMD ["/opt/run.sh"]

View File

@@ -3,4 +3,11 @@
# Set password
echo "root:${PASSWORD}" | chpasswd
/opt/app/butterfly.server.py --unsecure --host=0.0.0.0
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