Skip to content

Commit 88cc14c

Browse files
setup Docker build
1 parent 59f2161 commit 88cc14c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM alpine:latest
2+
COPY cli53 /bin/cli53
3+
RUN chmod +x /bin/cli53 && apk add --no-cache openssl ca-certificates
4+
ENTRYPOINT ["cli53"]
5+
CMD ["-v"]

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ test-coverage:
4545
gocovmerge coverage/*.txt > coverage.txt
4646

4747
test: test-unit test-integration
48+
49+
docker-build:
50+
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'
51+
sudo docker build -t barnybug/cli53 .
52+
rm -f cli53

0 commit comments

Comments
 (0)