Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
@@ -13,6 +13,13 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
13 |
# Install ffmpeg for audio processing
|
14 |
RUN apt-get update && apt-get install -y ffmpeg
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
# Make port 7860 available to the world outside this container
|
17 |
EXPOSE 7860
|
18 |
|
|
|
13 |
# Install ffmpeg for audio processing
|
14 |
RUN apt-get update && apt-get install -y ffmpeg
|
15 |
|
16 |
+
# Set environment variable for cache directory
|
17 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
18 |
+
ENV HF_HOME=/app/cache
|
19 |
+
|
20 |
+
# Create the cache directory inside the container
|
21 |
+
RUN mkdir -p /app/cache
|
22 |
+
|
23 |
# Make port 7860 available to the world outside this container
|
24 |
EXPOSE 7860
|
25 |
|