make listener port in Dockerfile configurable

This commit is contained in:
ducklet 2023-03-17 23:17:28 +01:00
parent 9fb24741a1
commit c2a9cfecf1
2 changed files with 12 additions and 2 deletions

View file

@ -1,7 +1,14 @@
#!/bin/sh -eu
: "${UNWIND_PORT:=8097}"
cd "$RUN_DIR"
[ -z "${DEBUG:-}" ] || set -x
exec uvicorn --host 0.0.0.0 --factory unwind:create_app
export UNWIND_PORT
exec uvicorn \
--host 0.0.0.0 \
--port "$UNWIND_PORT" \
--factory unwind:create_app