FROM python:3.12-slim WORKDIR /app COPY central/pyproject.toml /tmp/central/pyproject.toml RUN pip install --no-cache-dir /tmp/central COPY central /app/central ENV PYTHONPATH=/app CMD ["sh", "-c", "alembic -c central/alembic.ini upgrade head && uvicorn central.app.main:app --host 0.0.0.0 --port 8000"]