Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -2,10 +2,16 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /home/user/app
|
| 4 |
|
| 5 |
-
#
|
| 6 |
COPY requirements.txt .
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|