1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-01 20:38:09 +00:00

More fix for Dockerfile.

This commit is contained in:
Abubakr-Sadik Nii Nai Davis 2018-08-10 12:20:02 +00:00
parent 76b3319cff
commit 15c35bab03

View File

@ -2,8 +2,8 @@ FROM golang:1.9 AS build
WORKDIR /go/src/github.com/aquasecurity/kube-bench/ 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 go get -v -d github.com/aquasecurity/bench-common RUN git clone https://github.com/aquasecurity/bench-common /go/src/github.com/aquasecurity
ADD main.go . 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'
FROM alpine:3.7 AS run FROM alpine:3.7 AS run