mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
adding server port parameter
This commit is contained in:
@@ -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"]
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user