Azure Oryx could not find packages installed to .python_packages/. Add a startup.sh script that sets PYTHONPATH to include the bundled package directory before launching gunicorn. Update workflow to set the Web App startup command to use startup.sh. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 lines
332 B
Bash
8 lines
332 B
Bash
#!/bin/bash
|
|
|
|
# Set PYTHONPATH to include bundled packages
|
|
export PYTHONPATH="/home/site/wwwroot/.python_packages/lib/site-packages:/home/site/wwwroot/antenv/lib/python3.12/site-packages:$PYTHONPATH"
|
|
|
|
# Start gunicorn with uvicorn workers
|
|
gunicorn -w 2 -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000 --timeout 120 app.main:app
|