|
@@ -1,10 +1,10 @@
|
|
|
-FROM golang:1.23 AS build
|
|
|
|
|
|
|
+FROM golang:1.25 AS build
|
|
|
WORKDIR /go/src/github.com/zricethezav/gitleaks
|
|
WORKDIR /go/src/github.com/zricethezav/gitleaks
|
|
|
COPY . .
|
|
COPY . .
|
|
|
RUN VERSION=$(git describe --tags --abbrev=0) && \
|
|
RUN VERSION=$(git describe --tags --abbrev=0) && \
|
|
|
CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X=github.com/zricethezav/gitleaks/v8/version.Version=${VERSION}"
|
|
CGO_ENABLED=0 go build -o bin/gitleaks -ldflags "-X=github.com/zricethezav/gitleaks/v8/version.Version=${VERSION}"
|
|
|
|
|
|
|
|
-FROM alpine:3.19
|
|
|
|
|
|
|
+FROM alpine:3.22
|
|
|
RUN apk add --no-cache bash git openssh-client
|
|
RUN apk add --no-cache bash git openssh-client
|
|
|
COPY --from=build /go/src/github.com/zricethezav/gitleaks/bin/* /usr/bin/
|
|
COPY --from=build /go/src/github.com/zricethezav/gitleaks/bin/* /usr/bin/
|
|
|
|
|
|