Spaces:
No application file
No application file
Update Dockerfile
Browse files- Dockerfile +8 -4
Dockerfile
CHANGED
|
@@ -29,16 +29,20 @@ 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 |
# Copy requirements file
|
| 33 |
COPY requirements.txt .
|
| 34 |
|
| 35 |
# Install Python dependencies
|
| 36 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 37 |
|
| 38 |
-
# Install Python dependencies
|
| 39 |
-
COPY requirements.txt .
|
| 40 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 41 |
-
|
| 42 |
# Let Selenium auto-download the correct driver
|
| 43 |
ENV SELENIUM_MANAGER_DRIVER=1
|
| 44 |
|
|
|
|
| 29 |
&& apt-get install -y google-chrome-stable \
|
| 30 |
&& rm -rf /var/lib/apt/lists/*
|
| 31 |
|
| 32 |
+
# ---- runtime writable caches ---------------------------------
|
| 33 |
+
ENV HOME=/root \
|
| 34 |
+
MPLCONFIGDIR=/tmp/matplotlib \
|
| 35 |
+
XDG_CACHE_HOME=/tmp/fontcache \
|
| 36 |
+
PLAYWRIGHT_BROWSERS_PATH=/root/.cache/ms-playwright
|
| 37 |
+
RUN mkdir -p /tmp/matplotlib /tmp/fontcache /root/.cache/ms-playwright
|
| 38 |
+
# --------------------------------------------------------------
|
| 39 |
+
|
| 40 |
# Copy requirements file
|
| 41 |
COPY requirements.txt .
|
| 42 |
|
| 43 |
# Install Python dependencies
|
| 44 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
# Let Selenium auto-download the correct driver
|
| 47 |
ENV SELENIUM_MANAGER_DRIVER=1
|
| 48 |
|