Skip to content

Commit

Permalink
Chore: Add ENV variables for temp folders (#583)
Browse files Browse the repository at this point in the history
Co-authored-by: AgnesToulet <35176601+AgnesToulet@users.noreply.github.com>
  • Loading branch information
evictorero and AgnesToulet authored Dec 17, 2024
1 parent bf37b95 commit 68d536c
Show file tree
Hide file tree
Showing 6 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
Binary file modified tests/testdata/error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/testdata/full-page-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/testdata/graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/testdata/table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 68d536c

Please sign in to comment.