File size: 477 Bytes
4e022da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c42f12e
4e022da
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY config.py .
COPY utils.py .
COPY memory.py .
COPY knowledge.py .
COPY thinker.py .
COPY language.py .
COPY brain.py .
COPY main.py .
COPY data/ ./data/

EXPOSE 7860

HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
    CMD python -c "import httpx; r = httpx.get('http://localhost:7860/v1/health'); assert r.status_code == 200"

CMD ["python", "main.py"]