1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-06 03:54:48 +02:00
This commit is contained in:
kev 2016-01-26 00:48:50 +08:00
parent fb31400650
commit 248bac7760
2 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,7 @@ dockerfiles
- [ ] cloudtunes - [ ] cloudtunes
- [ ] ffmpeg - [ ] ffmpeg
- [ ] freegeoip - [ ] freegeoip
- [ ] gitlab
- [ ] gitolite - [ ] gitolite
- [ ] hashcat - [ ] hashcat
- [ ] irc - [ ] irc

View File

@ -7,6 +7,16 @@ webhook
to easily create HTTP endpoints (hooks) on your server, which you can use to to easily create HTTP endpoints (hooks) on your server, which you can use to
execute configured commands. 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 ## Directory Tree
``` ```