Auto-mode commit 7aa33cd accidentally deleted 78 files (14,814 lines) during M005
execution. Subsequent commits rebuilt some frontend files but backend/, alembic/,
tests/, whisper/, docker configs, and prompts were never restored in this repo.
This commit restores the full project tree by syncing from ub01's working directory,
which has all M001-M007 features running in production containers.
Restored: backend/ (config, models, routers, database, redis, search_service, worker),
alembic/ (6 migrations), docker/ (Dockerfiles, nginx, compose), prompts/ (4 stages),
tests/, whisper/, README.md, .env.example, chrysopedia-spec.md
30 lines
783 B
Text
30 lines
783 B
Text
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# System deps
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc libpq-dev curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Python deps (cached layer)
|
|
COPY backend/requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Git commit SHA for version tracking
|
|
ARG GIT_COMMIT_SHA=unknown
|
|
|
|
# Application code
|
|
COPY backend/ /app/
|
|
RUN echo "${GIT_COMMIT_SHA}" > /app/.git-commit
|
|
COPY prompts/ /prompts/
|
|
COPY config/ /config/
|
|
COPY alembic.ini /app/alembic.ini
|
|
COPY alembic/ /app/alembic/
|
|
|
|
EXPOSE 8000
|
|
|
|
HEALTHCHECK --interval=15s --timeout=5s --retries=3 --start-period=10s \
|
|
CMD curl -f http://localhost:8000/health || exit 1
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|