File size: 596 Bytes
0a188d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Stage 1: Embed Service
FROM cppd86/fineagent:latest AS fineagents

FROM python:3.10-slim
RUN apt-get update && apt-get install -y supervisor --no-install-recommends && rm -rf /var/lib/apt/lists/*

RUN useradd -m -u 1000 user
WORKDIR /app

# COPY ONLY the /app folder from your original images
COPY --from=fineagents /app /app

RUN pip install --upgrade pip 
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir \
    langgraph-checkpoint-sqlite aiosqlite langchain_nvidia_ai_endpoints

EXPOSE 7860

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]