Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogg committed Oct 4, 2017
1 parent 6b0c5e9 commit 4b90705
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM alpine:3.6

ENV CUCKOO_VERSION 0.3.1

RUN apk add --no-cache \
ca-certificates

RUN apk add --no-cache --virtual .build-deps \
curl \
unzip \
&& curl -fSL https://github.com/full360/cuckoo/releases/download/v${CUCKOO_VERSION}/cuckoo_${CUCKOO_VERSION}_linux_amd64.zip \
-o /usr/local/bin/cuckoo.zip \
&& cd /usr/local/bin \
&& unzip cuckoo.zip \
&& rm cuckoo.zip \
&& curl -fSL http://pki.full360.com/full360-root-ca.crt \
-o /usr/local/share/ca-certificates/full360-root-ca.crt \
&& update-ca-certificates \
&& apk del .build-deps
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test: format

docker:
docker build -t full360/cuckoo:latest . \
&& docker tag -f full360/cuckoo:latest full360/cuckoo:$(VERSION) \
&& docker tag full360/cuckoo:latest full360/cuckoo:$(VERSION) \
&& docker push full360/cuckoo

.PHONY: all local build dist format tools vet test docker

0 comments on commit 4b90705

Please sign in to comment.