From 8d23afd45deecbcaaf142ce6226f06698db9d9e1 Mon Sep 17 00:00:00 2001 From: anotherbridge <46713015+anotherbridge@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:29:44 +0100 Subject: [PATCH] Use latest base images. (#1334) * Use latest images. * Fix version --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 36588e91..f2586079 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM golang:1.19 AS build +FROM golang:1.21 AS build WORKDIR /go/src/github.com/zricethezav/gitleaks COPY . . RUN VERSION=$(git describe --tags --abbrev=0) && \ CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X="github.com/zricethezav/gitleaks/v8/cmd.Version=${VERSION} -FROM alpine:3.16 +FROM alpine:3.19 RUN apk add --no-cache bash git openssh-client COPY --from=build /go/src/github.com/zricethezav/gitleaks/bin/* /usr/bin/