From bf895807f5e44f844d7f053b16d1228aa35390a8 Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Tue, 6 May 2025 17:26:56 +1200 Subject: [PATCH] docs: Revise `Dockerfile` instructions --- Dockerfile.md | 79 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 49 insertions(+), 30 deletions(-) diff --git a/Dockerfile.md b/Dockerfile.md index 6ffbecd..330e048 100644 --- a/Dockerfile.md +++ b/Dockerfile.md @@ -1,47 +1,66 @@ ## Usage -### From git directory +Run the image with `testssl.sh` options appended (default is `--help`). The container entrypoint is already set to `testsl.sh` as the command for convenience. -``` -docker build . +```bash +docker run --rm -it ghcr.io/testssl/testssl.sh:3.2 --fs github.com ``` -Catch is when you run without image tags you need to catch the ID when building +### Output files -``` -[..] ----> 889fa2f99933 -Successfully built 889fa2f99933 +Keep in mind that any output file (_`--log`, `--html`, `--json`, etc._) will be created within the container. + +Use a volume bind mount to a local host directory to access the files outside of the container. Set a working directory for the container and any options output prefix can then use a relative path, like this example for `--htmfile`: + +```bash +# Writes the HTML output to the host path: /tmp/example.com_p443--