From 10ba7ef02b6d52d88746fa1bd5b9c82ee574197f Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Sat, 28 Oct 2023 10:55:48 +0300 Subject: [PATCH] allow internal port change --- code/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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