2026-04-16 11:17:10 +00:00
|
|
|
FROM docker.io/library/node:24.14.1@sha256:80fc934952c8f1b2b4d39907af7211f8a9fff1a4c2cf673fb49099292c251cec as node
|
2021-10-20 18:34:28 +00:00
|
|
|
|
2022-04-13 20:03:34 +00:00
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
|
|
|
software-properties-common
|
2021-10-20 18:34:28 +00:00
|
|
|
|
|
|
|
|
#Chrome browser to run the tests
|
|
|
|
|
ARG CHROME_VERSION=86.0.4240.75
|
|
|
|
|
RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add \
|
|
|
|
|
&& wget https://www.slimjet.com/chrome/download-chrome.php?file=files%2F$CHROME_VERSION%2Fgoogle-chrome-stable_current_amd64.deb \
|
|
|
|
|
&& dpkg -i download-chrome*.deb || true
|
|
|
|
|
|
2022-04-13 20:03:34 +00:00
|
|
|
RUN apt-get install --no-install-recommends -y -f \
|
2021-10-20 18:34:28 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
#Disable the SUID sandbox so that chrome can launch without being in a privileged container
|
|
|
|
|
RUN dpkg-divert --add --rename --divert /opt/google/chrome/google-chrome.real /opt/google/chrome/google-chrome \
|
|
|
|
|
&& echo "#! /bin/bash\nexec /opt/google/chrome/google-chrome.real --no-sandbox --disable-setuid-sandbox \"\$@\"" > /opt/google/chrome/google-chrome \
|
|
|
|
|
&& chmod 755 /opt/google/chrome/google-chrome
|
|
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
COPY package*.json ./
|
2026-04-09 16:37:28 +00:00
|
|
|
|
2026-04-08 13:31:19 +00:00
|
|
|
COPY pnpm-lock.yaml ./
|
2026-04-09 16:37:28 +00:00
|
|
|
RUN npm install -g corepack@0.34.6 && corepack enable && pnpm install --frozen-lockfile
|
|
|
|
|
|
2021-10-20 18:34:28 +00:00
|
|
|
COPY . .
|
|
|
|
|
|