use the uvicorn logger; also update dockerfile to run migrations as parto f startup instead of when starting uvicorn

This commit is contained in:
Viktor Barzin 2025-06-22 14:00:47 +00:00
parent 684af9a040
commit 744fa7b8a7
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
4 changed files with 17 additions and 63 deletions

View file

@ -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"]