chore(docker): update Dockerfile to run database migrations before starting the application

This commit is contained in:
Davidson Gomes 2025-05-07 13:31:21 -03:00
parent d380d4bf71
commit 8722704034

View File

@ -32,4 +32,4 @@ ENV PORT=8000 \
# Expose port
EXPOSE 8000
CMD uvicorn src.main:app --host $HOST --port $PORT
CMD alembic upgrade head && uvicorn src.main:app --host $HOST --port $PORT