Run Google's Lighthouse headless in the background
This image allows you to quickly run lighthouse in a headless container. That's useful if you want to run it from a CI server, or in the background of your workstation.
Github URL: https://github.com/MatthiasWinkelmann/lighthouse-chromium-alpine-docker
git clone git@github.com:MatthiasWinkelmann/lighthouse-chromium-alpine-docker.git
docker build -t lighthouse lighthouse-chromium-alpine-docker
Docker Hub URL: https://hub.docker.com/r/matthiaswinkelmann/lighthouse-chromium-alpine/
docker pull matthiaswinkelmann/lighthouse-chromium-alpine
Processes within the container cannot easily access the host's file system. You can either print to STDOUT and redirect to a file, or mount a local folder in the container, as shown here:
docker run lighthouse --output-path=stdout https://google.com
docker run -v ./output/:/lighthouse/output/ lighthouse --output-path=/lighthouse/output/results.html --save-assets --save-artifacts https://google.com
docker run lighthouse test
Canonical URL: https://matthi.coffee/2017/lighthouse-chromium-headless-docker