-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 768 Bytes
/
Dockerfile
File metadata and controls
20 lines (15 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:22
# Install Chrome dependencies
RUN apt-get update && apt-get install -y wget ca-certificates fonts-liberation \
libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 \
libdbus-1-3 libgdk-pixbuf2.0-0 libnspr4 libnss3 libx11-xcb1 libxcomposite1 \
libxdamage1 libxrandr2 xdg-utils --no-install-recommends
# Install Chrome
RUN wget -O /tmp/chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& dpkg -i /tmp/chrome.deb || apt-get -fy install
# Install Lighthouse CLI globally
RUN npm install -g lighthouse
WORKDIR /home/lighthouse
COPY ./run-lighthouse.sh /home/lighthouse/run-lighthouse.sh
RUN chmod +x /home/lighthouse/run-lighthouse.sh
ENTRYPOINT ["/home/lighthouse/run-lighthouse.sh"]