From 27d326614f72772e9d67da56f53ff0cb2ea6b219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Tue, 14 Jan 2020 15:55:11 +0100 Subject: [PATCH] Dockerfile: Use go 1.13 and alpine 3.11 bases (#560) Co-authored-by: Liz Rice --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eccd82b..7c31f12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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