chore(docker): update Dockerfile to run database migrations before starting the application
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user