add PYTHONPATH environment variable to Dockerfile
This commit is contained in:
@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user