screenshot-service/README.md

26 lines
430 B
Markdown
Raw Normal View History

2022-02-13 22:30:56 +01:00
# Screenshot service
## Dependencies
- `Xvfb`
- `fluxbox`
- `firefox-beta`
2022-02-24 00:24:13 +01:00
## Building
```sh
docker image build -t headless-fox .
```
2022-04-24 18:47:08 +02:00
## Running a single analysis
2022-02-13 22:30:56 +01:00
2022-02-24 00:24:13 +01:00
```
2022-04-24 18:47:08 +02:00
BASE_URL=http://localhost:3000 docker run -i -v $PWD/static:/opt/static headless-fox ./script3.sh '{"url": "pearson.pl", "third_party_domains": ["hotjar.com", "cookielaw.org"]}' 123
```
## Running the server
```
BASE_URL=http://localhost:3000 node .
2022-02-24 00:24:13 +01:00
```