use the uvicorn logger; also update dockerfile to run migrations as parto f startup instead of when starting uvicorn
This commit is contained in:
parent
684af9a040
commit
744fa7b8a7
4 changed files with 17 additions and 63 deletions
|
|
@ -40,4 +40,5 @@ EXPOSE 8000
|
|||
# Set the entry point (adjust to your CLI's entry point)
|
||||
# ENTRYPOINT ["python", "/app/main.py"]
|
||||
# ENTRYPOINT ["/app/runall.sh"]
|
||||
ENTRYPOINT ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
CMD ["/bin/bash" ,"-c" ,"alembic upgrade head && uvicorn api.app:app --host 0.0.0.0 --port 8000"]
|
||||
# ENTRYPOINT ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue