From ac4b5146b0f112df989b4374abb2b12799e37cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Filipe=20Silva?= <41396279+jfgsilva@users.noreply.github.com> Date: Thu, 1 Feb 2024 14:23:13 +0000 Subject: [PATCH] removed gitleaks user from Dockerfile (#1313) --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cbee1ad3..36588e91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 '*'