Fixes for inline css (CSSOM)

This commit is contained in:
2026-05-16 16:05:32 -07:00
parent 422994ad07
commit 40c63dc4e2
10 changed files with 301 additions and 103 deletions

View File

@@ -1,33 +1,26 @@
version: "3.8"
services:
archiver:
archive-worker:
build: .
image: local-page-archiver:latest
environment:
- ARCHIVE_PATH=/archives
- DISPLAY=:99
ARCHIVE_PATH: /archives
ARCHIVE_WORKER_XVFB: "1"
volumes:
- ./archives:/archives
# For headful testing, uncomment the line below and run with --profile=headful
# - /tmp/.X11-unix:/tmp/.X11-unix:rw
command: ["archive", "--help"]
shm_size: 1gb
command: ["archive", "${URL:?Set URL=https://example.com}", "--json"]
# Headful profile: runs a VNC server so you can watch the browser
archiver-headful:
profiles: ["headful"]
archive-worker-vnc:
profiles: ["debug"]
build: .
image: local-page-archiver:latest
environment:
- ARCHIVE_PATH=/archives
- DISPLAY=:99
ARCHIVE_PATH: /archives
ARCHIVE_WORKER_XVFB: "1"
ARCHIVE_WORKER_VNC: "1"
volumes:
- ./archives:/archives
ports:
- "5900:5900"
command: >
sh -c "
apt-get update && apt-get install -y x11vnc xvfb &&
Xvfb :99 -screen 0 1366x768x24 &
x11vnc -display :99 -nopw -forever &
sleep 2 &&
node src/cli.mjs archive $$URL
"
shm_size: 1gb
command: ["archive", "${URL:?Set URL=https://example.com}", "--json"]