obheda12 / GitDorker

A Python program to scrape secrets from GitHub through usage of a large repository of dorks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide a Dockerfile?

jdbohrman opened this issue · comments

It would be really nice to have the ability to run this via Docker with the ability to just pass in the env variables. Would this be something you'd like to see contributed?

That's a good point and I would, my only concern would be should it create any performance issues. Thoughts?

Sorry menum im not sure I follow?

Hi,

I'm currently using this Dockerfile successfully (and without noticeable performance decreases):

FROM python:3.8-slim

COPY requirements.txt .
RUN pip install --user -r requirements.txt

WORKDIR /code

COPY ./GitDorker.py .
ENTRYPOINT [ "python", "GitDorker.py" ]

via

$ docker build -t gitdorker:latest .

and

$ docker run --rm -v $PWD:/code gitdorker:latest -h

One note, I had to change the requirements file to this:

termcolor
tqdm
requests

@obheda12
Let me know if you're interested in a PR for this.

Hi tommy, thank you I would be please go ahead and I will accept it after reviewing

The docker file has been provided