Fixes for inline css (CSSOM)
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user