aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2f236e4..9c8ae04 100644
--- a/README.md
+++ b/README.md
@@ -5,5 +5,13 @@ A simple golang application to explore [liveness and readiness checks](http://ku
## To build
In the cloned directory, run the following:
```
-CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -installsuffix netgo -ldflags '-w' .
+CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -installsuffix netgo -ldflags '-w -s' .
```
+
+## To build with only Docker
+Ensure [docker](https://www.docker.com/get-docker) is installed. In the cloned directory, run the folowing:
+
+```
+docker run --rm -v $PWD:/go/src/github.com/tydavis/showreadiness -w /go/src/github.com/tydavis/showreadiness golang:alpine /bin/sh -c "CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -installsuffix netgo -ldflags '-w -s' . "
+```
+