diff --git a/README.md b/README.md index 991c230..2742b71 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ dockerfiles - [ ] cloudtunes - [ ] ffmpeg - [ ] freegeoip +- [ ] gitlab - [ ] gitolite - [ ] hashcat - [ ] irc diff --git a/webhook/README.md b/webhook/README.md index 6a0493c..ce027b8 100644 --- a/webhook/README.md +++ b/webhook/README.md @@ -7,6 +7,16 @@ webhook to easily create HTTP endpoints (hooks) on your server, which you can use to execute configured commands. +## Build Binary + +To build a docker image from scratch, we need to build static linked binary. + +```bash +$ go get -d github.com/adnanh/webhook +$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -installsuffix cgo -ldflags '-s -extld ld -extldflags -static' -a -x -o webhook github.com/adnanh/webhook +$ file webhook +``` + ## Directory Tree ```