|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
FROM golang:1.20.6 AS build
|
|
|
|
|
FROM golang:1.21.1 AS build
|
|
|
|
|
WORKDIR /go/src/github.com/aquasecurity/kube-bench/
|
|
|
|
|
COPY makefile makefile
|
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
@ -9,7 +9,7 @@ COPY internal/ internal/
|
|
|
|
|
ARG KUBEBENCH_VERSION
|
|
|
|
|
RUN make build && cp kube-bench /go/bin/kube-bench
|
|
|
|
|
|
|
|
|
|
FROM alpine:3.18.2 AS run
|
|
|
|
|
FROM alpine:3.18.3 AS run
|
|
|
|
|
WORKDIR /opt/kube-bench/
|
|
|
|
|
# add GNU ps for -C, -o cmd, and --no-headers support
|
|
|
|
|
# https://github.com/aquasecurity/kube-bench/issues/109
|
|
|
|
|