Skip to content
Snippets Groups Projects
Unverified Commit 90305322 authored by Neha Viswanathan's avatar Neha Viswanathan Committed by GitHub
Browse files

upgrade base image versions in Dockerfile (#831)

parent 50fce51d
No related branches found
No related tags found
No related merge requests found
FROM golang:1.15 AS build FROM golang:1.16 AS build
WORKDIR /go/src/github.com/aquasecurity/kube-bench/ WORKDIR /go/src/github.com/aquasecurity/kube-bench/
COPY go.mod go.sum ./ COPY go.mod go.sum ./
COPY main.go . COPY main.go .
...@@ -10,7 +10,7 @@ ARG GOOS=linux ...@@ -10,7 +10,7 @@ ARG GOOS=linux
ARG GOARCH=amd64 ARG GOARCH=amd64
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=$GOOS GOARCH=$GOARCH go build -a -ldflags "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion=${KUBEBENCH_VERSION} -w" -o /go/bin/kube-bench RUN GO111MODULE=on CGO_ENABLED=0 GOOS=$GOOS GOARCH=$GOARCH go build -a -ldflags "-X github.com/aquasecurity/kube-bench/cmd.KubeBenchVersion=${KUBEBENCH_VERSION} -w" -o /go/bin/kube-bench
FROM alpine:3.12 AS run FROM alpine:3.13 AS run
WORKDIR /opt/kube-bench/ WORKDIR /opt/kube-bench/
# add GNU ps for -C, -o cmd, and --no-headers support # add GNU ps for -C, -o cmd, and --no-headers support
# https://github.com/aquasecurity/kube-bench/issues/109 # https://github.com/aquasecurity/kube-bench/issues/109
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment