Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
@@ -5,6 +5,14 @@ RUN apt-get update && apt-get install -y gcc ghostscript pdftohtml imagemagick
|
|
5 |
|
6 |
COPY requirements.txt .
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
RUN pip install --upgrade pip
|
9 |
|
10 |
RUN pip install --no-cache-dir -r requirements.txt --upgrade
|
|
|
5 |
|
6 |
COPY requirements.txt .
|
7 |
|
8 |
+
# Set environment variables for Matplotlib and Fontconfig
|
9 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib_config
|
10 |
+
ENV XDG_CACHE_HOME=/tmp/cache
|
11 |
+
|
12 |
+
# Create writable directories
|
13 |
+
RUN mkdir -p /tmp/matplotlib_config /tmp/cache/fontconfig && \
|
14 |
+
chmod -R 777 /tmp/matplotlib_config /tmp/cache
|
15 |
+
|
16 |
RUN pip install --upgrade pip
|
17 |
|
18 |
RUN pip install --no-cache-dir -r requirements.txt --upgrade
|