command line utility for compressing static files for serving them on the web.
1.0K
docker run --rm -v `pwd`:/work klamar/compress
docker run --rm -v `pwd`:/work klamar/compress --verbose
The compressor inside the docker image is compressing everything in the /work directory. So mount the directory you want to run the compressor against into the /work directory.
By default the script will ensure the compressed files:
Every file will get a gzip counterpart compressed with highest compression level (gzip -9)
foo.css -> foo.css.gz
Every file will get a brotli counterpart compressed with highest compression level (brotli --quality 11)
foo.css -> foo.css.br
PNG files are getting optimized using optipng with optimization level 5.
foo.png -> foo.png.orig (original)
foo.png (optimized using optipng)
Content type
Image
Digest
Size
269.7 MB
Last updated
almost 9 years ago
docker pull klamar/compress