Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
#
|
4 |
ENV HF_HOME=/tmp/hf_cache
|
5 |
ENV TRANSFORMERS_CACHE=/tmp/hf_cache
|
6 |
ENV HF_DATASETS_CACHE=/tmp/hf_cache
|
@@ -9,6 +9,10 @@ ENV XDG_CACHE_HOME=/tmp
|
|
9 |
WORKDIR /app
|
10 |
COPY . /app
|
11 |
|
|
|
|
|
|
|
|
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
|
14 |
EXPOSE 7860
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
# Environment variable overrides
|
4 |
ENV HF_HOME=/tmp/hf_cache
|
5 |
ENV TRANSFORMERS_CACHE=/tmp/hf_cache
|
6 |
ENV HF_DATASETS_CACHE=/tmp/hf_cache
|
|
|
9 |
WORKDIR /app
|
10 |
COPY . /app
|
11 |
|
12 |
+
# Install apt packages for decoding: ffmpeg + libsndfile
|
13 |
+
RUN apt-get update && apt-get install -y ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/*
|
14 |
+
|
15 |
+
# Then Python deps
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
|
18 |
EXPOSE 7860
|