feat: create directory in one go, don't use cache dir and use more standard entrypoint.sh

This commit is contained in:
2025-11-09 17:36:48 +01:00
parent 527ab07b6f
commit a498971d66
2 changed files with 3 additions and 4 deletions

22
docker/entrypoint.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -eux
cd /app
AUTOMIGRATE=${AUTOMIGRATE:-yes}
NUM_WORKERS_DEFAULT=$((2 * $(nproc --all)))
export NUM_WORKERS=${NUM_WORKERS:-$NUM_WORKERS_DEFAULT}
if [ "$AUTOMIGRATE" != "skip" ]; then
nf migrate --noinput
fi
exec gunicorn notfellchen.wsgi \
--name notfellchen \
--workers $NUM_WORKERS \
--max-requests 1200 \
--max-requests-jitter 50 \
--log-level=info \
--bind 0.0.0.0:7345