Skip to content

Commit

Permalink
removed gitleaks user from Dockerfile (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfgsilva committed Feb 1, 2024
1 parent 76c9e31 commit ac4b514
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ 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
RUN adduser -D gitleaks && \
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/
USER gitleaks

RUN git config --global --add safe.directory '*'

Expand Down

0 comments on commit ac4b514

Please sign in to comment.