From 633ed98bf00003990de01b58d1b7a10f889b508d Mon Sep 17 00:00:00 2001 From: Alexandre GV Date: Sun, 1 Mar 2020 16:56:36 +0100 Subject: [PATCH] Add docker usage in README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index ebe8af4b..c8dc433f 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ Run it on your own images! First, [install Go](https://golang.org/doc/install). go get -u github.com/fogleman/primitive primitive -i input.png -o output.png -n 100 +Alternatively, you can use [Docker](https://docs.docker.com/install/). + + docker run -v ${PWD}:/tmp golang sh -c 'go get -u github.com/fogleman/primitive; primitive -i /tmp/input.png -o /tmp/output.png -n 100' + + Small input images should be used (like 256x256px). You don't need the detail anyway and the code will run faster. | Flag | Default | Description |