Moved updated services from /home/sam/development/ root into aboutme_chat_demo/: - knowledge_service/ (with ChromaDB, gitea_scraper, FastAPI) - langgraph_service/ (with LangGraph agent orchestration) - airflow/ (with DAGs for scheduled ingestion) All services now in single repo location. Modular docker-compose files per service maintained. Removed duplicate nested directories. Updated files reflect latest working versions.
29 lines
550 B
Docker
29 lines
550 B
Docker
FROM python:3.11-slim
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
gcc \
|
|
g++ \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create directories
|
|
RUN mkdir -p /app/packages /app/code
|
|
|
|
WORKDIR /app
|
|
|
|
# Install packages to isolated directory
|
|
COPY requirements.txt .
|
|
RUN pip install --target=/app/packages -r requirements.txt
|
|
|
|
# Copy code
|
|
COPY . /app/code/
|
|
|
|
ENV PYTHONPATH=/app/packages
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app/code
|
|
EXPOSE 8090
|
|
|
|
CMD ["python3", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8090"]
|
|
|