Support dynamic ports
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
PUID=${PUID:-1000}
|
||||
PGID=${PGID:-1000}
|
||||
SPOOLMAN_PORT=${SPOOLMAN_PORT:-8000}
|
||||
SPOOLMAN_HOST=${SPOOLMAN_HOST:-0.0.0.0}
|
||||
|
||||
groupmod -o -g "$PGID" app
|
||||
usermod -o -u "$PUID" app
|
||||
@@ -12,4 +14,4 @@ echo User GID: $(id -g app)
|
||||
echo "Starting uvicorn..."
|
||||
|
||||
# Execute the uvicorn command with any additional arguments
|
||||
exec su-exec "app" uvicorn spoolman.main:app "$@"
|
||||
exec su-exec "app" uvicorn spoolman.main:app --host $SPOOLMAN_HOST --port $SPOOLMAN_PORT "$@"
|
||||
|
||||
Reference in New Issue
Block a user