Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -17,10 +17,15 @@ RUN apt-get update && apt-get install -y \
|
|
17 |
libasound2 \
|
18 |
&& rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
-
#
|
21 |
ENV XDG_CACHE_HOME=/tmp/.cache
|
22 |
RUN mkdir -p /tmp/.cache/selenium /tmp/chrome-user-data
|
23 |
|
|
|
|
|
|
|
|
|
|
|
24 |
# 3) Python deps
|
25 |
COPY requirements.txt .
|
26 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
17 |
libasound2 \
|
18 |
&& rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
+
# Redirect Selenium cache & Chrome user‑data to /tmp (writable)
|
21 |
ENV XDG_CACHE_HOME=/tmp/.cache
|
22 |
RUN mkdir -p /tmp/.cache/selenium /tmp/chrome-user-data
|
23 |
|
24 |
+
# Tell webdriver‑manager to cache under /tmp/.wdm instead of /.wdm
|
25 |
+
ENV WDM_LOCAL=/tmp/.wdm
|
26 |
+
RUN mkdir -p /tmp/.wdm
|
27 |
+
|
28 |
+
|
29 |
# 3) Python deps
|
30 |
COPY requirements.txt .
|
31 |
RUN pip install --no-cache-dir -r requirements.txt
|