From 47899e3a94ad8841475f5d13032c3c59c3c01ee2 Mon Sep 17 00:00:00 2001 From: Keftcha Date: Wed, 8 Jun 2022 14:03:00 +0200 Subject: [PATCH] Correct container usage (correct tdewolff/minify#489) Precise the entrypoint of the image Also correct the command in example usage --- cmd/minify/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/minify/README.md b/cmd/minify/README.md index 2341492d24..d1544d4026 100644 --- a/cmd/minify/README.md +++ b/cmd/minify/README.md @@ -72,11 +72,12 @@ Pull the image: docker pull tdewolff/minify ``` +> The `ENTRYPOINT` of the container is the `minify` command + and run the image, for example in interactive mode: -``` -docker run -i tdewolff/minify -echo "(function(){ if (a == false) { return 0; } else { return 1; } })();" | minify --type js +```bash +docker run -i --entrypoint "" tdewolff/minify sh -c 'echo "(function(){ if (a == false) { return 0; } else { return 1; } })();" | minify --type js' ``` which will output