Repository navigation
Add Docker image for scrape mode - #8
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 aswebvacwith/dataas the working directory soscraped_data/can be volume-mounted..dockerignore— keeps VCS metadata, virtualenvs, caches, tests, docs, the optionaldecaffeinatorsubmodule, 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 singleVerification
Build:
Doctor preflight (real headless Chromium launch inside the container):
CLI entrypoint: