This image contains an installation of Squoosh CLI.
From the command line, navigate to the directory containing the images you want to compress. Then run the following command.
docker run --rm -it -v `pwd`:/app johnfmorton/squoosh
You will be presented with another command prompt from within the container. You can now execute a squoosh-cli command. For example:
squoosh-cli --webp auto *.png
Refer to the documentation for an exhaustive list of options for Squoosh CLI.
See the GitHub repo for additional documentation on using this Dockerfile: https://github.com/johnfmorton/docker-squoosh-cli/
Where to file issues: https://github.com/johnfmorton/docker-squoosh-cli/issues