Files
gitleaks/Dockerfile
T
2019-11-10 13:30:43 -05:00

17 lines
528 B
Docker

FROM golang:1.13.0 AS build
WORKDIR /go/src/github.com/zricethezav/gitleaks-ng
COPY . .
RUN GO111MODULE=on CGO_ENABLED=0 go build -o bin/gitleaks-ng *.go
FROM alpine:3.7
RUN apk add --no-cache bash git openssh
COPY --from=build /go/src/github.com/zricethezav/gitleaks-ng/bin/* /usr/bin/
ENTRYPOINT ["gitleaks-ng"]
# How to use me :
# docker build -t gitleaks .
# docker run --rm --name=gitleaks gitleaks --repo=https://github.com/zricethezav/gitleaks
# This will check for secrets in https://github.com/zricethezav/gitleaks