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--