Skip to content

Commit

Permalink
setup Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
flyinprogrammer committed May 3, 2016
1 parent 59f2161 commit 88cc14c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:latest
COPY cli53 /bin/cli53
RUN chmod +x /bin/cli53 && apk add --no-cache openssl ca-certificates
ENTRYPOINT ["cli53"]
CMD ["-v"]
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ test-coverage:
gocovmerge coverage/*.txt > coverage.txt

test: test-unit test-integration

docker-build:
sudo docker run --rm -v `pwd`:/go/src/github.com/barnybug/cli53 -w /go/src/github.com/barnybug/cli53 golang:1.6-alpine sh -c 'apk add --no-cache make git && make build'
sudo docker build -t barnybug/cli53 .
rm -f cli53

0 comments on commit 88cc14c

Please sign in to comment.