TANMIHA commited on
Commit
ddb36cf
·
verified ·
1 Parent(s): bf217fd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -23
Dockerfile CHANGED
@@ -1,24 +1,26 @@
1
- FROM python:3.11-slim
2
- WORKDIR /app
3
-
4
- # 1. Install system tools required for building Python packages
5
- RUN apt-get update && apt-get install -y build-essential curl && rm -rf /var/lib/apt/lists/*
6
-
7
- # 2. FORCE INSTALL - This is the most important step.
8
- # 'pyautogen' is the pip package name. 'autogen' is the import name.
9
- RUN pip install --no-cache-dir \
10
- fastapi \
11
- uvicorn \
12
- python-dotenv \
13
- pyautogen \
14
- openenv-core>=0.2.0
15
-
16
- # 3. Copy your project files
17
- COPY . .
18
-
19
- # 4. Set the Python Path
20
- ENV PYTHONPATH=/app
21
- EXPOSE 8000
22
-
23
- # 5. Start the server
 
 
24
  CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.11-slim
2
+ WORKDIR /app
3
+
4
+ # 1. Install system tools
5
+ RUN apt-get update && apt-get install -y build-essential curl && rm -rf /var/lib/apt/lists/*
6
+
7
+ # 2. FORCE INSTALL (THE "NUKE" STEP)
8
+ # We add a dummy echo here to break the cache and force a re-download.
9
+ # 'pyautogen' is the pip package name. 'autogen' is the import name.
10
+ RUN echo "Forcing fresh install - v2" && \
11
+ pip install --no-cache-dir \
12
+ fastapi==0.110.0 \
13
+ uvicorn==0.27.1 \
14
+ python-dotenv==1.0.1 \
15
+ pyautogen==0.2.27 \
16
+ openenv-core>=0.2.0
17
+
18
+ # 3. Copy files
19
+ COPY . .
20
+
21
+ # 4. Set environment
22
+ ENV PYTHONPATH=/app
23
+ EXPOSE 8000
24
+
25
+ # 5. Start
26
  CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]