dockerfiles/clair/Dockerfile
Jess Frazelle efdc3429ca
fix
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-02-12 15:28:48 -08:00

29 lines
441 B
Docker

FROM alpine:latest
RUN apk --no-cache add \
bzr \
ca-certificates \
git \
rpm \
xz
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN buildDeps=' \
go \
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" ]