diff --git a/apps/api/Dockerfile.prod b/apps/api/Dockerfile.prod index c89e18e..8f90f64 100644 --- a/apps/api/Dockerfile.prod +++ b/apps/api/Dockerfile.prod @@ -12,4 +12,6 @@ COPY . . ENV PYTHONPATH=/app -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"] +RUN chmod +x start.sh + +CMD ["./start.sh"] diff --git a/apps/api/start.sh b/apps/api/start.sh new file mode 100644 index 0000000..fcd6dbd --- /dev/null +++ b/apps/api/start.sh @@ -0,0 +1,3 @@ +#!/bin/sh +uv run alembic upgrade head +uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 2