From 3084f2436e45452b2656515b4283b56e751cb4de Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sun, 12 Feb 2017 14:49:59 -0800 Subject: [PATCH] clair Signed-off-by: Jess Frazelle --- clair/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 clair/Dockerfile diff --git a/clair/Dockerfile b/clair/Dockerfile new file mode 100644 index 0000000..fec311d --- /dev/null +++ b/clair/Dockerfile @@ -0,0 +1,25 @@ +FROM alpine:latest + +RUN apk --no-cache add \ + ca-certificates + +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go + +RUN buildDeps=' \ + go \ + git \ + gcc \ + g++ \ + libc-dev \ + libgcc \ + ' \ + set -x \ + && apk --no-cache add $buildDeps \ + && go get github.com/coreos/clair/cmd/clair \ + && mv /go/bin/clair /usr/bin/clair \ + && apk del $buildDeps \ + && rm -rf /go \ + && echo "Build complete." + +ENTRYPOINT [ "clair" ]