Skip to content

Commit

Permalink
Merge pull request #490 from Keftcha/master
Browse files Browse the repository at this point in the history
Correct container usage (correct #489)
  • Loading branch information
tdewolff authored Jun 8, 2022
2 parents c72f866 + 47899e3 commit aec4628
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/minify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aec4628

Please sign in to comment.