Files
plane/apps/api/bin/docker-entrypoint-api-cloud.sh
T
pratapalakshmiandGitHub 5b8cb655c6 chore: update Dockerfile for monitor service to create a non-root user (#6113)
* chore: update Dockerfile for monitor service to create a non-root user and adjust permissions for improved security

* chore: enhance Docker entrypoints to support non-root execution and improve log directory permissions
2026-02-28 17:33:57 +05:30

15 lines
397 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$(id -u)" = "0" ]; then
chown -R plane:plane /code/plane/logs
exec su-exec plane "$0" "$@"
fi
export SKIP_ENV_VAR=0
# Run consolidated startup
python manage.py startup cloud
exec gunicorn -w "$GUNICORN_WORKERS" -k uvicorn.workers.UvicornWorker plane.asgi:application --bind 0.0.0.0:"${PORT:-8000}" --max-requests 1200 --max-requests-jitter 1000 --access-logfile -