Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -8
Dockerfile
CHANGED
|
@@ -12,15 +12,11 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
# Copy the requirements file
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
#
|
|
|
|
| 17 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
| 18 |
-
pip install --no-cache-dir
|
| 19 |
-
fastapi==0.109.0 \
|
| 20 |
-
uvicorn==0.27.0 \
|
| 21 |
-
pydantic==2.6.1 \
|
| 22 |
-
openai==2.30.0 \
|
| 23 |
-
openenv-core==0.2.3
|
| 24 |
|
| 25 |
# Copy the rest of your application code
|
| 26 |
COPY . .
|
|
|
|
| 12 |
# Copy the requirements file
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
+
# THE FINAL FIX:
|
| 16 |
+
# We upgrade pip/setuptools/wheel first, then install the core.
|
| 17 |
+
# We stop hard-pinning sub-dependencies to allow the resolver to work.
|
| 18 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
| 19 |
+
pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
# Copy the rest of your application code
|
| 22 |
COPY . .
|