chore(docker): update Dockerfile to run database migrations before starting the application
This commit is contained in:
parent
d380d4bf71
commit
8722704034
@ -32,4 +32,4 @@ ENV PORT=8000 \
|
|||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
CMD uvicorn src.main:app --host $HOST --port $PORT
|
CMD alembic upgrade head && uvicorn src.main:app --host $HOST --port $PORT
|
Loading…
Reference in New Issue
Block a user