Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -2,8 +2,13 @@ FROM python:3.9-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
COPY requirements.txt .
|
| 6 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
| 7 |
|
| 8 |
COPY . .
|
| 9 |
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Set matplotlib config directory to a writable location
|
| 6 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 7 |
+
|
| 8 |
COPY requirements.txt .
|
| 9 |
+
RUN pip install --no-cache-dir -r requirements.txt && \
|
| 10 |
+
mkdir -p /tmp/matplotlib && \
|
| 11 |
+
chmod -R 777 /tmp/matplotlib
|
| 12 |
|
| 13 |
COPY . .
|
| 14 |
|