File size: 693 Bytes
ddb36cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f72327a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.11-slim
WORKDIR /app

# 1. Install system tools
RUN apt-get update && apt-get install -y build-essential curl && rm -rf /var/lib/apt/lists/*

# 2. FORCE INSTALL (THE "NUKE" STEP)
# We add a dummy echo here to break the cache and force a re-download.
# 'pyautogen' is the pip package name. 'autogen' is the import name.
RUN echo "Forcing fresh install - v2" && \
    pip install --no-cache-dir \
    fastapi==0.110.0 \
    uvicorn==0.27.1 \
    python-dotenv==1.0.1 \
    pyautogen==0.2.27 \
    openenv-core>=0.2.0

# 3. Copy files
COPY . .

# 4. Set environment
ENV PYTHONPATH=/app
EXPOSE 8000

# 5. Start
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]