Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
PYTHONUNBUFFERED=1 \
|
|
@@ -26,7 +26,7 @@ COPY requirements.txt .
|
|
| 26 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
# Pre-download model
|
| 29 |
-
RUN python - <<
|
| 30 |
from huggingface_hub import snapshot_download
|
| 31 |
snapshot_download(
|
| 32 |
repo_id="LiquidAI/LFM2.5-Audio-1.5B",
|
|
@@ -34,7 +34,7 @@ snapshot_download(
|
|
| 34 |
local_dir_use_symlinks=False
|
| 35 |
)
|
| 36 |
print("Model downloaded successfully.")
|
| 37 |
-
|
| 38 |
|
| 39 |
COPY . .
|
| 40 |
|
|
|
|
| 1 |
+
FROM python:3.12-slim-bookworm
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
PYTHONUNBUFFERED=1 \
|
|
|
|
| 26 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
# Pre-download model
|
| 29 |
+
RUN python - <<PYEOF
|
| 30 |
from huggingface_hub import snapshot_download
|
| 31 |
snapshot_download(
|
| 32 |
repo_id="LiquidAI/LFM2.5-Audio-1.5B",
|
|
|
|
| 34 |
local_dir_use_symlinks=False
|
| 35 |
)
|
| 36 |
print("Model downloaded successfully.")
|
| 37 |
+
PYEOF
|
| 38 |
|
| 39 |
COPY . .
|
| 40 |
|