<commit_before># Lighthouse CI

## Build the image

```bash
docker build -t lighthouse_ci .
```

## Run the container

```bash
## Run a new container
docker run -d -p 8080:8080 --cap-add=SYS_ADMIN lighthouse_ci
```

## Usage

```bash
curl -X GET 'http://localhost:8080?format=${format}&url=${url}'
```

where `format` is one of `json`, `html`.<commit_msg>Update builder readme<commit_after># Lighthouse CI backend

Running Lighthouse in a Docker container.

## Build the image

```bash
docker build -t lighthouse_ci .
```

## Run the container

```bash
## Run a new container
docker run -d -p 8080:8080 --cap-add=SYS_ADMIN lighthouse_ci
```

## Usage

```bash
curl -X POST \
  -H "Content-Type: application/json" \
  --data '{"format": "json", "url": "https://staging.example.com"}' \
  https://builder-dot-lighthouse-ci.appspot.com/ci
```

where `format` is one of `json`, `html`.
{'fraction_non_alphanumeric': 0.17366628830874006, 'fraction_numerical': 0.022701475595913734, 'mean_word_length': 4.04, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3170450', 'n_tokens_mistral': 355, 'n_tokens_neox': 301, 'n_words': 94}