mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
Added dockerfile
This commit is contained in:
1 parent
ad53f2ce34
commit
d9d87410e2
1 file changed
+20
+20
@@ -0,0 +1,20 @@
|
||||
FROM golang:1.10.0-alpine3.7
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk update && apk upgrade && apk add --no-cache bash git openssh
|
||||
|
||||
COPY . ./
|
||||
|
||||
RUN go get -u github.com/zricethezav/gitleaks
|
||||
RUN go build
|
||||
|
||||
ENTRYPOINT ["gitleaks"]
|
||||
|
||||
|
||||
# How to use me :
|
||||
|
||||
# docker build -t gitleaks .
|
||||
# docker run --rm --name=gitleaks gitleaks https://github.com/zricethezav/gitleaks
|
||||
|
||||
# This will check for secrets in https://github.com/zricethezav/gitleaks
|
||||
Reference in new issue
Block a user