Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
Jess Frazelle
2019-12-05 17:14:28 -08:00
parent aa667a3a56
commit 0cb9e81816
6 changed files with 15 additions and 6 deletions

View File

@@ -7,7 +7,15 @@ RUN apk --no-cache add \
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN go get github.com/coreos/clair/cmd/clair
RUN go get github.com/quay/clair/cmd/clair || true
ENV CLAIR_VERSION v2.1.1
WORKDIR /go/src/github.com/quay/clair
RUN git checkout "${CLAIR_VERSION}"
RUN make build
FROM alpine:latest
@@ -17,6 +25,6 @@ RUN apk --no-cache add \
rpm \
xz
COPY --from=builder /go/bin/clair /usr/bin/clair
COPY --from=builder /go/src/github.com/coreos/clair/cmd/clair /usr/bin/clair
ENTRYPOINT [ "clair" ]