Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-02-12 14:49:59 -08:00
parent 9306c0c66e
commit 3084f2436e
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

25
clair/Dockerfile Normal file
View File

@ -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" ]