Skip to content

Commit 74cc7bd

Browse files
committed
fix: disable gunicorn control socket in read-only containers
Signed-off-by: lucarlig <luca.carlig@ibm.com>
1 parent 9499be9 commit 74cc7bd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

run-gunicorn.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,11 @@ cmd+=(
391391
--pid "${LOCK_FILE}" # Use lock file as PID file
392392
)
393393

394+
if gunicorn --help 2>/dev/null | grep -q -- "--no-control-socket"; then
395+
cmd+=( --no-control-socket )
396+
echo "🚫 Gunicorn control socket disabled for read-only container filesystem"
397+
fi
398+
394399
# Add developer mode flags if enabled
395400
if [[ "${GUNICORN_DEV_MODE}" == "true" ]]; then
396401
cmd+=( --reload --reload-extra-file gunicorn.config.py )

0 commit comments

Comments
 (0)