79383464

Date: 2025-01-24 06:50:40
Score: 0.5
Natty:
Report link

Was able to fix by instead doing a cd $APP_DIR prior to starting uvicorn:

ENTRYPOINT cd $APP_DIR && uvicorn $APP_APP --host 0.0.0.0 --port $PORT

A quick uvicorn --help implies --app-dir option is only relevant on where to load .py files by modifying PYTHONPATH. I'd reckon directories are treated differently

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: John Heyer