diff --git a/code/entrypoint.sh b/code/entrypoint.sh index 2a7ba6b..25ea9d5 100644 --- a/code/entrypoint.sh +++ b/code/entrypoint.sh @@ -4,6 +4,7 @@ SQLITE=sqlite3 export FLASK_DATAFOLDER="/data" export FLASK_DB="/data/flees.db" +export INTERNAL_PORT="${INTERNAL_PORT:-5000}" export SERVER=gunicorn export PID="flees.pid" export WORKERS @@ -23,6 +24,6 @@ exec "$SERVER" \ -w $WORKERS \ --timeout $TIMEOUT \ --pid="$PID" \ - -b 0.0.0.0:5000 \ + -b 0.0.0.0:$INTERNAL_PORT \ 'app:app' \ 2>&1 | tee -a /data/flees.log