Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
-
FROM python:3.10
|
|
|
|
|
|
|
2 |
|
3 |
# Create a writable cache directory
|
4 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
5 |
|
6 |
-
# Set environment variable to use this cache
|
7 |
ENV HF_HOME=/app/cache
|
8 |
|
9 |
WORKDIR /app
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
|
3 |
+
# Install ffmpeg and libsndfile (required for audio decoding)
|
4 |
+
RUN apt-get update && apt-get install -y ffmpeg libsndfile1
|
5 |
|
6 |
# Create a writable cache directory
|
7 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
8 |
|
|
|
9 |
ENV HF_HOME=/app/cache
|
10 |
|
11 |
WORKDIR /app
|