Files
chat_backend/Dockerfile
T
westfarnandCursor 9176f4783e
CI / test (pull_request) Successful in 16s
Unit Tests / test (pull_request) Successful in 15s
Drop compromised eMudhra roots from outbound TLS trust.
Upgrade the image CA store and certifi to 2026.10.23 so forged certificates chaining to emSign ECC Root CA - G3 are rejected.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 10:51:00 -05:00

30 lines
637 B
Docker

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 ca-certificates libpq5 \
&& update-ca-certificates \
&& 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"]