DermaScan-AI / supervisord.conf
Meet Radadiya
Add Dockerfile and supervisord config for HuggingFace Spaces deployment
9a0b03d
raw
history blame
591 Bytes
[supervisord]
nodaemon=true
logfile=/tmp/supervisord.log
pidfile=/tmp/supervisord.pid
[program:api]
command=python -m uvicorn api.app:app --host 0.0.0.0 --port 8000
directory=/app
environment=PYTHONPATH="/app"
autostart=true
autorestart=true
stdout_logfile=/tmp/api.log
stderr_logfile=/tmp/api.log
[program:frontend]
command=python -m streamlit run app.py --server.port 7860 --server.address 0.0.0.0 --server.headless true
directory=/app/frontend
environment=PYTHONPATH="/app/frontend:/app"
autostart=true
autorestart=true
stdout_logfile=/tmp/frontend.log
stderr_logfile=/tmp/frontend.log