Spaces:
No application file
No application file
Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -29,13 +29,15 @@ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add
|
|
| 29 |
&& apt-get install -y google-chrome-stable \
|
| 30 |
&& rm -rf /var/lib/apt/lists/*
|
| 31 |
|
| 32 |
-
# ----
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
MPLCONFIGDIR=/tmp/matplotlib \
|
| 35 |
XDG_CACHE_HOME=/tmp/fontcache \
|
| 36 |
-
PLAYWRIGHT_BROWSERS_PATH=/
|
| 37 |
-
RUN mkdir -p /tmp/matplotlib /tmp/fontcache /
|
| 38 |
-
|
| 39 |
|
| 40 |
# Copy requirements file
|
| 41 |
COPY requirements.txt .
|
|
|
|
| 29 |
&& apt-get install -y google-chrome-stable \
|
| 30 |
&& rm -rf /var/lib/apt/lists/*
|
| 31 |
|
| 32 |
+
# -------------------------------------------------------------
|
| 33 |
+
# Writable caches for non-root runtime
|
| 34 |
+
# -------------------------------------------------------------
|
| 35 |
+
ENV HOME=/tmp \
|
| 36 |
MPLCONFIGDIR=/tmp/matplotlib \
|
| 37 |
XDG_CACHE_HOME=/tmp/fontcache \
|
| 38 |
+
PLAYWRIGHT_BROWSERS_PATH=/tmp/ms-playwright
|
| 39 |
+
RUN mkdir -p /tmp/matplotlib /tmp/fontcache /tmp/ms-playwright \
|
| 40 |
+
&& chmod -R 777 /tmp/matplotlib /tmp/fontcache /tmp/ms-playwright
|
| 41 |
|
| 42 |
# Copy requirements file
|
| 43 |
COPY requirements.txt .
|