Skip to content

Commit

Permalink
Use latest base images. (#1334)
Browse files Browse the repository at this point in the history
* Use latest images.

* Fix version
  • Loading branch information
anotherbridge committed Feb 2, 2024
1 parent ac4b514 commit 8d23afd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/

Expand Down

0 comments on commit 8d23afd

Please sign in to comment.