Skip to content

Commit 68d536c

Browse files
Chore: Add ENV variables for temp folders (#583)
Co-authored-by: AgnesToulet <[email protected]>
1 parent bf37b95 commit 68d536c

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ FROM node:18-alpine AS base
44
ENV CHROME_BIN="/usr/bin/chromium-browser"
55
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
66

7+
# Folder used by puppeteer to write temporal files
8+
ENV XDG_CONFIG_HOME=/tmp/.chromium
9+
ENV XDG_CACHE_HOME=/tmp/.chromium
10+
711
WORKDIR /usr/src/app
812

913
RUN apk --no-cache upgrade && \

debian.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ FROM node:18-slim AS base
33
ENV CHROME_BIN="/usr/bin/google-chrome-stable"
44
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
55

6+
# Folder used by puppeteer to write temporal files
7+
ENV XDG_CONFIG_HOME=/tmp/.chromium
8+
ENV XDG_CACHE_HOME=/tmp/.chromium
9+
610
WORKDIR /usr/src/app
711

812
RUN apt-get update

tests/testdata/error.png

-405 Bytes
Loading
-28.9 KB
Loading

tests/testdata/graph.png

-2.38 KB
Loading

tests/testdata/table.png

-7.49 KB
Loading

0 commit comments

Comments
 (0)