mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 06:21:32 +01:00
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user