- Specialize voice assistant identity and agent system prompt for «شرکت شهرکهای صنعتی اصفهان» (English instructions with Persian proper names) - Emit bounded chunk text excerpts (up to 2000 chars) and identify primary_source in realtime sources events - Bound OpenAI output generation via OPENAI_REALTIME_MAX_OUTPUT_TOKENS and add answer_limited event - Handle old-turn search cancellation safely on turn supersession - Add end-to-end search tracing pipeline and diagnostic CLI - Add database organization title and settings update script
39 lines
1.0 KiB
Docker
39 lines
1.0 KiB
Docker
FROM python:3.11-slim
|
|
|
|
# Set environment variables for Python
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
PIP_NO_CACHE_DIR=1 \
|
|
PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl \
|
|
build-essential \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy dependency configuration
|
|
COPY pyproject.toml /app/
|
|
|
|
# Stub package to leverage Docker layer caching for pip dependencies
|
|
RUN mkdir -p /app/app && touch /app/app/__init__.py \
|
|
&& pip install --no-cache-dir -e ".[api,voice,embedding]"
|
|
|
|
# Copy application source code and migrations
|
|
COPY app/ /app/app/
|
|
COPY scripts/ /app/scripts/
|
|
COPY migrations/ /app/migrations/
|
|
COPY alembic.ini /app/
|
|
COPY data/ /app/data/
|
|
|
|
# Reinstall editable package to ensure all entry points and modules are bound
|
|
RUN pip install --no-deps -e .
|
|
|
|
# Expose default API port
|
|
EXPOSE 8000
|
|
|
|
# Default command: FastAPI API server
|
|
CMD ["python", "-m", "app.server", "--host", "0.0.0.0", "--port", "8000"]
|