dockerfiles/clair/Dockerfile
Jess Frazelle e1b48daaae
cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-09-14 15:22:09 -04:00

23 lines
340 B
Docker

FROM golang:alpine as builder
RUN apk --no-cache add \
ca-certificates \
git
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN go get github.com/coreos/clair/cmd/clair
FROM alpine:latest
RUN apk --no-cache add \
ca-certificates \
git \
rpm \
xz
COPY --from=builder /go/bin/clair /usr/bin/clair
ENTRYPOINT [ "clair" ]