Dockerize chat_backend for server-infra deploy (closes #6).
CI / test (pull_request) Successful in 15s
Unit Tests / test (pull_request) Successful in 13s

Add uv packaging, env-driven Django settings, OLLAMA_BASE_URL (LAN GPU
host), DatabaseStorage for prompt/document blobs, compose/CI/deploy
workflows mirroring scha, and ASGI gunicorn+UvicornWorker for WebSockets.
This commit is contained in:
2026-07-25 07:03:10 -05:00
parent 77d7edd0dc
commit de84ff1b00
31 changed files with 5970 additions and 532 deletions
+28
View File
@@ -0,0 +1,28 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
UV_PROJECT_ENVIRONMENT=/app/.venv
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends libpq5 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
COPY llm_be ./llm_be
COPY scripts/docker-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
WORKDIR /app/llm_be
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]