chore: introduce alembic

This commit is contained in:
Leon
2025-07-17 17:25:06 +02:00
parent 1d2da3baab
commit 8f3634d0dc
9 changed files with 416 additions and 2 deletions

View File

@@ -19,4 +19,4 @@ COPY --from=builder /app /app
EXPOSE 8000
ENV PATH="/app/.venv/bin:$PATH"
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["sh", "-c", "uv run alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8000"]