Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
Jess Frazelle 2019-12-05 17:29:13 -08:00
parent 1459d3328c
commit 63bff5a797
No known key found for this signature in database
GPG Key ID: E34EC3D4E4953C4A
2 changed files with 5 additions and 4 deletions

View File

@ -39,7 +39,7 @@ RUN apt-get update && apt-get install -y \
clang-format \ clang-format \
python \ python \
python-netaddr \ python-netaddr \
python-pyroute2 \ python3-pyroute2 \
luajit \ luajit \
libluajit-5.1-dev \ libluajit-5.1-dev \
arping \ arping \

View File

@ -2,7 +2,8 @@ FROM golang:alpine as builder
RUN apk --no-cache add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
git git \
make
ENV PATH /go/bin:/usr/local/go/bin:$PATH ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go ENV GOPATH /go
@ -15,7 +16,7 @@ WORKDIR /go/src/github.com/quay/clair
RUN git checkout "${CLAIR_VERSION}" RUN git checkout "${CLAIR_VERSION}"
RUN make build RUN go install ./cmd/clair
FROM alpine:latest FROM alpine:latest
@ -25,6 +26,6 @@ RUN apk --no-cache add \
rpm \ rpm \
xz xz
COPY --from=builder /go/src/github.com/coreos/clair/cmd/clair /usr/bin/clair COPY --from=builder /go/bin/clair /usr/bin/clair
ENTRYPOINT [ "clair" ] ENTRYPOINT [ "clair" ]