diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a1c26da --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/Makefile b/Makefile index 0af0c46..b557b76 100644 --- a/Makefile +++ b/Makefile @@ -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