forked from anshumanbh/git-all-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 1002 Bytes
/
Dockerfile
File metadata and controls
31 lines (21 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM golang:latest
MAINTAINER Anshuman Bhartiya <anshuman.bhartiya@gmail.com>
ADD . /data
WORKDIR /data/thog
RUN apt-get update && apt-get install -y python-pip
RUN pip install -r requirements.txt
RUN chmod +x truffleHog/truffleHog.py
WORKDIR /data
RUN chmod +x rungitsecrets.sh
RUN chmod +x runreposupervisor.sh
RUN git clone https://github.com/anshumanbh/git-secrets.git && cd git-secrets && make install
RUN git clone https://github.com/anshumanbh/repo-supervisor.git
WORKDIR /data/repo-supervisor
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
RUN /bin/bash -c "source ~/.bashrc && nvm install 7"
RUN /bin/bash -c "source ~/.bashrc && cd /data/repo-supervisor && npm install --no-optional && npm run build"
WORKDIR /data
RUN go get github.com/google/go-github/github && go get github.com/satori/go.uuid && go get golang.org/x/oauth2
RUN go build -o gitallsecrets .
ENV PATH $PATH:/root/.nvm/versions/node/v7.10.0/bin
ENTRYPOINT ["./gitallsecrets"]