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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -1,17 +1,16 @@
1
  FROM python:3.10-slim
2
 
3
- # Set work directory
4
  WORKDIR /home/user/app
5
 
6
  # Install dependencies
7
  COPY requirements.txt .
 
 
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
  # Copy app code
11
  COPY . .
12
 
13
- # Expose Gradio default port
14
  EXPOSE 7860
15
 
16
- # Run app
17
  CMD ["python", "app.py"]
 
1
  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
12
  COPY . .
13
 
 
14
  EXPOSE 7860
15
 
 
16
  CMD ["python", "app.py"]