Skip to content

Add Docker image for scrape mode - #8

Merged
Shellghostt merged 1 commit into
mainfrom
docker-image
Nov 9, 2026
Merged

Shellghostt merged 1 commit into
mainfrom
docker-image

Conversation

@Shellghostt

Copy link
Copy Markdown
Owner

Closes #4

What

Adds a production-lean Docker image for WebVac's scrape/crawl mode:

  • Dockerfile — python:3.12-slim, installs the package from source (pip install .) and Patchright Chromium with its OS deps, runs as webvac with /data as the working directory so scraped_data/ can be volume-mounted.
  • .dockerignore — keeps VCS metadata, virtualenvs, caches, tests, docs, the optional decaffeinator submodule, and local secrets/credentials out of the build context.

The optional De-Caffeinator VAPT task is intentionally excluded: it needs the submodule plus Node.js, which would bloat the image for the common scrape use case.

Usage

docker build -t webvac .
docker run --rm webvac --doctor
docker run --rm -v webvac-data:/data webvac --url https://example.com --mode single

Verification

Build:

$ docker build -t webvac:test .
...
#14 naming to docker.io/library/webvac:test done
build exit=0

Doctor preflight (real headless Chromium launch inside the container):

$ docker run --rm webvac:test --doctor
[OK] Python 3.12.16
[OK] Output directory writable: scraped_data
[OK] Patchright browser launched successfully.
Doctor summary: 3 ok, 4 warnings, 0 failures
doctor exit=0

CLI entrypoint:

$ docker run --rm webvac:test --help
usage: webvac [-h] [--url URL] [--doctor] ...
help exit=0

Slim python:3.12 image with WebVac installed from source and Patchright
Chromium ready to launch. /data is the working directory so scan output
can be volume-mounted. The optional De-Caffeinator VAPT task is left out
on purpose (submodule + Node.js) to keep the image lean.

Closes #4
@Shellghostt
Shellghostt merged commit a3ed61d into main Nov 9, 2026
4 checks passed
@Shellghostt
Shellghostt deleted the docker-image branch November 9, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Docker image for WebVac

1 participant