Adding docker support

pull/55/head
Chris Blumentritt 5 years ago
parent 448f072e36
commit b96da0b547

@ -0,0 +1,4 @@
.git/
.vscode/
*.txt
!/requirements.txt

@ -0,0 +1,6 @@
FROM python:3.7-alpine
RUN /sbin/apk add tor
COPY . /opt/sherlock/
RUN /usr/local/bin/pip install -r /opt/sherlock/requirements.txt
ENTRYPOINT ["python", "/opt/sherlock/sherlock.py"]

@ -47,6 +47,23 @@ optional arguments:
For example, run ```python3 sherlock.py user123```, and all of the accounts
found will be stored in a text file with the username (e.g ```user123.txt```).
## Docker Notes
If you have docker installed you can build an image and run this as a container.
```
docker build -t mysherlock-image .
```
Once the image is built sherlock can be invoked by running the following:
```
docker run --rm mysherlock-image user123
```
The ```--rm``` flag is optional. It removes the container filesystem after running so you do not have a bunch of leftover container filesystem cruft. See https://docs.docker.com/engine/reference/run/#clean-up---rm
One caveat is the text file that is created will only exist in the container so you will not be able to get at that.
## License
MIT License

Loading…
Cancel
Save