GreenBeanzz7 commited on
Commit
e7b436b
·
verified ·
1 Parent(s): d82befb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -2,10 +2,16 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /home/user/app
4
 
5
- # Install dependencies
6
  COPY requirements.txt .
7
- # First install websockets so gradio pulls the right version
 
 
 
 
8
  RUN pip install --no-cache-dir websockets==12.0
 
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  # Copy app code
 
2
 
3
  WORKDIR /home/user/app
4
 
5
+ # Copy requirements first
6
  COPY requirements.txt .
7
+
8
+ # Make sure pip is latest
9
+ RUN pip install --no-cache-dir --upgrade pip
10
+
11
+ # Force install websockets first
12
  RUN pip install --no-cache-dir websockets==12.0
13
+
14
+ # Install exact gradio + openai
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Copy app code