michelerussoAA commited on
Commit
276d6e5
·
verified ·
1 Parent(s): 8dd6168

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # 2) Redirect Selenium cache & Chrome profile to /tmp
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