mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
update
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
parent
1459d3328c
commit
63bff5a797
|
@ -39,7 +39,7 @@ RUN apt-get update && apt-get install -y \
|
|||
clang-format \
|
||||
python \
|
||||
python-netaddr \
|
||||
python-pyroute2 \
|
||||
python3-pyroute2 \
|
||||
luajit \
|
||||
libluajit-5.1-dev \
|
||||
arping \
|
||||
|
|
|
@ -2,7 +2,8 @@ FROM golang:alpine as builder
|
|||
|
||||
RUN apk --no-cache add \
|
||||
ca-certificates \
|
||||
git
|
||||
git \
|
||||
make
|
||||
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
ENV GOPATH /go
|
||||
|
@ -15,7 +16,7 @@ WORKDIR /go/src/github.com/quay/clair
|
|||
|
||||
RUN git checkout "${CLAIR_VERSION}"
|
||||
|
||||
RUN make build
|
||||
RUN go install ./cmd/clair
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
@ -25,6 +26,6 @@ RUN apk --no-cache add \
|
|||
rpm \
|
||||
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" ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user