Dockerfile 416 B

1234567891011121314151617181920
  1. FROM golang:1.10.0-alpine3.7
  2. WORKDIR /app
  3. RUN apk update && apk upgrade && apk add --no-cache bash git openssh
  4. COPY . ./
  5. RUN go get -u github.com/zricethezav/gitleaks
  6. RUN go build
  7. ENTRYPOINT ["gitleaks"]
  8. # How to use me :
  9. # docker build -t gitleaks .
  10. # docker run --rm --name=gitleaks gitleaks https://github.com/zricethezav/gitleaks
  11. # This will check for secrets in https://github.com/zricethezav/gitleaks