Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -10,12 +10,12 @@ COPY . /app/
|
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
# Set environment variables
|
| 14 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 15 |
ENV XDG_CACHE_HOME=/tmp
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
RUN mkdir -p /tmp/matplotlib /tmp/numba_cache
|
| 19 |
|
| 20 |
# Expose port 7860 (Hugging Face default)
|
| 21 |
EXPOSE 7860
|
|
|
|
| 10 |
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# Set environment variables for Matplotlib and cache
|
| 14 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 15 |
ENV XDG_CACHE_HOME=/tmp
|
| 16 |
|
| 17 |
+
# Ensure the directories exist and set correct permissions
|
| 18 |
+
RUN mkdir -p /tmp/matplotlib /tmp/numba_cache && chmod -R 777 /tmp/matplotlib /tmp/numba_cache
|
| 19 |
|
| 20 |
# Expose port 7860 (Hugging Face default)
|
| 21 |
EXPOSE 7860
|