Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -14,10 +14,13 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
14 |
RUN mkdir -p /python-docker/.cache/huggingface && \
|
15 |
chown -R 1000:1000 /python-docker/.cache
|
16 |
|
|
|
|
|
|
|
17 |
# Install Whisper model to ensure it's available
|
18 |
RUN python -c "from transformers import pipeline; pipeline('automatic-speech-recognition', model='openai/whisper-small')"
|
19 |
|
20 |
-
# Copy the entire application
|
21 |
COPY --chown=1000:1000 . .
|
22 |
|
23 |
# Expose the port the app runs on
|
|
|
14 |
RUN mkdir -p /python-docker/.cache/huggingface && \
|
15 |
chown -R 1000:1000 /python-docker/.cache
|
16 |
|
17 |
+
# Set the TRANSFORMERS_CACHE environment variable to the writable cache directory
|
18 |
+
ENV TRANSFORMERS_CACHE=/python-docker/.cache/huggingface
|
19 |
+
|
20 |
# Install Whisper model to ensure it's available
|
21 |
RUN python -c "from transformers import pipeline; pipeline('automatic-speech-recognition', model='openai/whisper-small')"
|
22 |
|
23 |
+
# Copy the entire application with appropriate permissions
|
24 |
COPY --chown=1000:1000 . .
|
25 |
|
26 |
# Expose the port the app runs on
|