瀏覽代碼

removed gitleaks user from Dockerfile (#1313)

João Filipe Silva 2 年之前
父節點
當前提交
ac4b5146b0
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      Dockerfile

+ 1 - 3
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 '*'