Skip to content

Commit

Permalink
distribute as a tiny docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed Dec 4, 2015
1 parent 7a04bd0 commit fba2a9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM go:1.5-onbuild
FROM scratch

ENTRYPOINT ["app"]
COPY /docker-gc /docker-gc

ENTRYPOINT ["/docker-gc"]
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o docker-gc .
docker build -t ndeloof/docker-gc .

0 comments on commit fba2a9d

Please sign in to comment.