add PYTHONPATH environment variable to Dockerfile

This commit is contained in:
2025-10-19 22:42:02 +03:00
parent 9ae2df1ee5
commit 9d8d5d1ccf

View File

@ -39,6 +39,9 @@ USER app
# Set the working directory
WORKDIR /code
# Add /code/src to Python import path
ENV PYTHONPATH=/code/src
# -------- replace with comment to run with gunicorn --------
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
# CMD ["gunicorn", "app.main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000"]