simoncck commited on
Commit
11e53fd
·
verified ·
1 Parent(s): 757e974

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # ---- 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 .
 
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 .