mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
removed gitleaks user from Dockerfile (#1313)
This commit is contained in:
1 parent
76c9e3175b
commit
ac4b5146b0
1 file changed
+1
-3
+1
-3
@@ -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 '*'
|
||||
|
||||
|
||||
Reference in new issue
Block a user