1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-22 08:08:07 +00:00

Dockerfile: Use go 1.13 and alpine 3.11 bases (#560)

Co-authored-by: Liz Rice <liz@lizrice.com>
This commit is contained in:
Manuel Rüger 2020-01-14 15:55:11 +01:00 committed by Liz Rice
parent 4925adbe6b
commit 27d326614f

View File

@ -1,4 +1,4 @@
FROM golang:1.12 AS build
FROM golang:1.13 AS build
WORKDIR /go/src/github.com/aquasecurity/kube-bench/
COPY go.mod go.sum ./
COPY main.go .
@ -7,7 +7,7 @@ COPY cmd/ cmd/
ARG KUBEBENCH_VERSION
RUN GO111MODULE=on CGO_ENABLED=0 go install -a -ldflags "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion=${KUBEBENCH_VERSION} -w"
FROM alpine:3.10 AS run
FROM alpine:3.11 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