diff --git a/Dockerfile b/Dockerfile index 19892b8..9e67fd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ RUN npm install -g playwright@1.60.0 # Install Google Chrome and its system dependencies. # The base image has Chromium but not branded Chrome. -RUN playwright install --with-deps chrome +RUN playwright install --with-deps chromium # Run in headed mode inside a virtual framebuffer. -# Headed Chrome avoids headless-detection by websites. +# Headed Chromium avoids headless-detection by websites. CMD ["xvfb-run", "--auto-servernum", "--server-args=-screen 0 1920x1080x24", \ "playwright", "run-server", "--port", "3000", "--host", "0.0.0.0"] diff --git a/README.md b/README.md index 480d7b0..84221cf 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ Pravda is the evidence layer — a service that other services build on. It uses Playwright to capture and store MHTML archives and full-page screenshots of web pages, along with response headers and snapshot metadata. It turns live web pages into durable, addressable evidence that can be inspected, diffed, and reasoned over long after the original page has changed. +# Pravda-chromium branch +If you want to test it locally on an Apple Silicon, use this [branch](https://github.com/Provereno-Media/pravda/tree/pravda-chromium) + ## What it does (v0) - Captures web pages as MHTML archives + screenshots diff --git a/docker-compose.yml b/docker-compose.yml index 81f2a9a..786f515 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ services: playwright: build: . + platform: linux/amd64 init: true ports: - "3000:3000"