2025-02-06 19:06:54 +00:00
|
|
|
FROM node:22.13.1-bookworm-slim@sha256:d6d1b3a6f21a25e43d765816281b4a86e5f1ebf843cfae1b14dd0f1c28257cc7
|
2024-06-20 16:46:59 +00:00
|
|
|
|
2023-12-21 14:43:11 +00:00
|
|
|
LABEL authorname="firq"
|
2024-06-20 17:34:43 +00:00
|
|
|
LABEL description="unlighthouse container for ci-based lighthouse testing"
|
2023-12-21 11:12:35 +00:00
|
|
|
WORKDIR /unlighthouse
|
|
|
|
|
2025-02-06 19:06:54 +00:00
|
|
|
ENV CHROMIUM_VERSION="132.0.6834.159-1~deb12u1"
|
2023-12-21 11:12:35 +00:00
|
|
|
ENV NODE_ENV='production'
|
|
|
|
|
|
|
|
# Update path so executable can be run globally
|
|
|
|
ENV PATH="/unlighthouse/node_modules/.bin:${PATH}"
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get -y install --no-install-recommends chromium=${CHROMIUM_VERSION} procps && rm -rf /var/lib/apt/lists/*
|
2025-02-06 18:42:00 +00:00
|
|
|
RUN npm install @unlighthouse/cli@0.15.0 puppeteer
|