Skip to content

Commit

Permalink
Chore: Add env variables to temp folders
Browse files Browse the repository at this point in the history
  • Loading branch information
evictorero committed Nov 28, 2024
1 parent bf37b95 commit 2620aa6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ FROM node:18-alpine AS base
ENV CHROME_BIN="/usr/bin/chromium-browser"
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"

# Folder used by puppeteer to write temporal files
ENV XDG_CONFIG_HOME=/tmp/.chromium
ENV XDG_CACHE_HOME=/tmp/.chromium

WORKDIR /usr/src/app

RUN apk --no-cache upgrade && \
Expand Down
4 changes: 4 additions & 0 deletions debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM node:18-slim AS base
ENV CHROME_BIN="/usr/bin/google-chrome-stable"
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"

# Folder used by puppeteer to write temporal files
ENV XDG_CONFIG_HOME=/tmp/.chromium
ENV XDG_CACHE_HOME=/tmp/.chromium

WORKDIR /usr/src/app

RUN apt-get update
Expand Down

0 comments on commit 2620aa6

Please sign in to comment.