forked from jakejarvis/lighthouse-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (20 loc) · 900 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Base image built from Dockerfile.base (Chrome Stable + Node LTS)
FROM judson/chrome-headless:latest
LABEL "com.github.actions.name"="Lighthouse Audit"
LABEL "com.github.actions.description"="Run tests on a webpage via Google's Lighthouse tool"
LABEL "com.github.actions.icon"="check-square"
LABEL "com.github.actions.color"="yellow"
LABEL version="0.3.2"
LABEL repository="https://github.com/jakejarvis/lighthouse-action"
LABEL homepage="https://jarv.is/"
LABEL maintainer="Jake Jarvis <[email protected]>"
# Download latest Lighthouse build from npm
# Cache bust to ensure latest version when building the image
ARG CACHEBUST=1
WORKDIR /app
RUN PUPPETEER_SKIP_DOWNLOAD=1 npm install [email protected] lighthouse puppeteer@11
# Disable Lighthouse error reporting to prevent prompt
ENV CI=true
ADD entrypoint.sh ./entrypoint.sh
ADD lighthouse.js ./lighthouse.js
ENTRYPOINT ["/app/entrypoint.sh"]