Spaces:
Runtime error
Runtime error
# 9 docker changes
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
# Base image
|
| 2 |
FROM python:3.9
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Set the working directory inside the container
|
| 5 |
WORKDIR /code
|
| 6 |
|
|
|
|
| 1 |
# Base image
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
+
# Set environment variables to avoid permission issues
|
| 5 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib_cache
|
| 6 |
+
ENV FONTCONFIG_PATH=/tmp/fontconfig
|
| 7 |
+
|
| 8 |
+
# Create directories and ensure writable permission
|
| 9 |
+
RUN mkdir -p /tmp/matplotlib_cache /tmp/fontconfig && chmod -R 777 /tmp/matplotlib_cache /tmp/fontconfig
|
| 10 |
+
|
| 11 |
# Set the working directory inside the container
|
| 12 |
WORKDIR /code
|
| 13 |
|