mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-02-16 17:42:05 +00:00
More fix for Dockerfile.
This commit is contained in:
parent
f91b9b0428
commit
197f6692e1
@ -3,6 +3,9 @@ WORKDIR /go/src/github.com/aquasecurity/kube-bench/
|
|||||||
ADD Gopkg.toml Gopkg.lock ./
|
ADD Gopkg.toml Gopkg.lock ./
|
||||||
RUN go get -v github.com/golang/dep/cmd/dep && dep ensure -v -vendor-only
|
RUN go get -v github.com/golang/dep/cmd/dep && dep ensure -v -vendor-only
|
||||||
RUN git clone https://github.com/aquasecurity/bench-common /go/src/github.com/aquasecurity/bench-common
|
RUN git clone https://github.com/aquasecurity/bench-common /go/src/github.com/aquasecurity/bench-common
|
||||||
|
WORKDIR /go/src/github.com/aquasecurity/bench-common/
|
||||||
|
RUN go get -v
|
||||||
|
WORKDIR /go/src/github.com/aquasecurity/bench-common/
|
||||||
COPY * /go/src/github.com/aquasecurity/kube-bench/
|
COPY * /go/src/github.com/aquasecurity/kube-bench/
|
||||||
RUN CGO_ENABLED=0 go install -a -ldflags '-w'
|
RUN CGO_ENABLED=0 go install -a -ldflags '-w'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user