Updated README
All checks were successful
/ release (push) Successful in 37s
/ build (push) Successful in 3m39s

This commit is contained in:
Firq 2023-12-29 13:12:36 +01:00
parent a856b33962
commit 9e20764526
Signed by: Firq
GPG key ID: 4DE1059A4666E89F

View file

@ -1,3 +1,30 @@
# Docker image to run lighthouse, but without non-privileged user
# unlighthouse Docker Image
Uses the full node:20-bookwork image instead of slim due to issues with GitLab lighthouse Docker
Image based on `node:20.10.0-bookworm` with `chromium` and `unlighthouse` preinstalled.
It can be used for benchmarking a given site with lighthouse and to generate corresponding reports with ease.
## Usage
The unlighthouse cli can be used by running the command `unlighthouse` inside the container
```shell
unlighthouse-ci --site "https://preview.firq.dev/"
```
It is recommended to provide a `unlighthouse.config.ts` to reduce the amount of CLI arguments needed.
An example config can be found here:
```typescript
export default {
puppeteerOptions: {
args: ["--no-sandbox", "--disable-setuid-sandbox"],
},
ci: {
budget: 90,
buildStatic: true
},
outputPath: "unlighthouse-reports",
}
```