Spaces:
Sleeping
Sleeping
fix(docker): remove explicit starlette pin
Browse filesconflicts with fastapi==0.115.0 fastapi==0.115.0 bundles starlette==0.46.x as a direct dependency. Pinning starlette>=0.40.0 separately causes pip ResolutionImpossible. fastapi 0.115.0 already satisfies the starlette security requirement (>= 0.40.0 for CVE-2024-47874) through its own bundled dependency.
- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -9,14 +9,13 @@ COPY . .
|
|
| 9 |
|
| 10 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 11 |
pip install --no-cache-dir \
|
| 12 |
-
fastapi==0.115.0 \
|
| 13 |
"uvicorn[standard]==0.27.0" \
|
| 14 |
pydantic==2.5.3 \
|
| 15 |
pydantic-settings==2.1.0 \
|
| 16 |
python-dotenv==1.0.0 \
|
| 17 |
python-magic==0.4.27 \
|
| 18 |
python-multipart==0.0.22 \
|
| 19 |
-
"starlette>=0.40.0" \
|
| 20 |
Pillow==12.1.1 \
|
| 21 |
imagehash==4.3.1 \
|
| 22 |
"numpy>=1.24.0,<2.0.0" \
|
|
@@ -28,15 +27,15 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
| 28 |
scikit-image==0.22.0 \
|
| 29 |
cryptography==46.0.6 \
|
| 30 |
psutil==5.9.8 \
|
| 31 |
-
xgboost>=2.0.0 \
|
| 32 |
-
shap>=0.45.0 && \
|
| 33 |
pip install --no-cache-dir \
|
| 34 |
torch==2.6.0 \
|
| 35 |
torchvision==0.21.0 \
|
| 36 |
transformers==4.53.1 \
|
| 37 |
diffusers==0.25.0 \
|
| 38 |
accelerate==1.7.0 \
|
| 39 |
-
huggingface_hub==0.30.0 \
|
| 40 |
safetensors==0.4.5 \
|
| 41 |
ftfy==6.1.1 \
|
| 42 |
regex==2023.12.25 \
|
|
|
|
| 9 |
|
| 10 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 11 |
pip install --no-cache-dir \
|
| 12 |
+
"fastapi==0.115.0" \
|
| 13 |
"uvicorn[standard]==0.27.0" \
|
| 14 |
pydantic==2.5.3 \
|
| 15 |
pydantic-settings==2.1.0 \
|
| 16 |
python-dotenv==1.0.0 \
|
| 17 |
python-magic==0.4.27 \
|
| 18 |
python-multipart==0.0.22 \
|
|
|
|
| 19 |
Pillow==12.1.1 \
|
| 20 |
imagehash==4.3.1 \
|
| 21 |
"numpy>=1.24.0,<2.0.0" \
|
|
|
|
| 27 |
scikit-image==0.22.0 \
|
| 28 |
cryptography==46.0.6 \
|
| 29 |
psutil==5.9.8 \
|
| 30 |
+
"xgboost>=2.0.0" \
|
| 31 |
+
"shap>=0.45.0" && \
|
| 32 |
pip install --no-cache-dir \
|
| 33 |
torch==2.6.0 \
|
| 34 |
torchvision==0.21.0 \
|
| 35 |
transformers==4.53.1 \
|
| 36 |
diffusers==0.25.0 \
|
| 37 |
accelerate==1.7.0 \
|
| 38 |
+
"huggingface_hub==0.30.0" \
|
| 39 |
safetensors==0.4.5 \
|
| 40 |
ftfy==6.1.1 \
|
| 41 |
regex==2023.12.25 \
|