Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -2,6 +2,7 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
ffmpeg git curl \
|
|
|
|
| 5 |
&& rm -rf /var/lib/apt/lists/*
|
| 6 |
|
| 7 |
WORKDIR /app
|
|
@@ -10,6 +11,10 @@ WORKDIR /app
|
|
| 10 |
RUN pip install --no-cache-dir torch torchaudio \
|
| 11 |
--index-url https://download.pytorch.org/whl/cpu
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# Install all other dependencies
|
| 14 |
RUN pip install --no-cache-dir \
|
| 15 |
fastapi uvicorn \
|
|
@@ -32,4 +37,4 @@ ENV HOME=/home/user
|
|
| 32 |
|
| 33 |
EXPOSE 7860
|
| 34 |
|
| 35 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
ffmpeg git curl \
|
| 5 |
+
libgomp1 \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
WORKDIR /app
|
|
|
|
| 11 |
RUN pip install --no-cache-dir torch torchaudio \
|
| 12 |
--index-url https://download.pytorch.org/whl/cpu
|
| 13 |
|
| 14 |
+
# FIX: Install DeepFilterNet separately before other deps
|
| 15 |
+
# Pre-built wheels now available — no Rust compiler needed
|
| 16 |
+
RUN pip install --no-cache-dir deepfilternet
|
| 17 |
+
|
| 18 |
# Install all other dependencies
|
| 19 |
RUN pip install --no-cache-dir \
|
| 20 |
fastapi uvicorn \
|
|
|
|
| 37 |
|
| 38 |
EXPOSE 7860
|
| 39 |
|
| 40 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|