git-subtree-dir: fiscal git-subtree-mainline:d95165fc8fgit-subtree-split:102ba84500
8 lines
304 B
Docker
8 lines
304 B
Docker
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"]
|