diff --git a/Dockerfile b/Dockerfile index ff724fca..7cf6ce59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ LABEL maintainer="codyzacharias@pm.me" WORKDIR /root -RUN git clone --depth=1 https://github.com/twintproject/twint.git && \ - cd /root/twint && \ - pip3 install . -r requirements.txt +COPY . /root/ +RUN cd /root && mkdir output && pip3 install . -r requirements.txt -CMD /bin/bash + +ENTRYPOINT ["twint"] diff --git a/README.md b/README.md index 5e1df670..e030d88c 100644 --- a/README.md +++ b/README.md @@ -63,11 +63,17 @@ pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@orig pipenv install git+https://github.com/twintproject/twint.git#egg=twint ``` -### March 2, 2021 Update +### Docker -**Added**: Dockerfile +##### Build +```bash +docker build . -t twint +``` -Noticed a lot of people are having issues installing (including me). Please use the Dockerfile temporarily while I look into them. +##### Run +```bash +docker run --rm -it -v "$PWD:/root/output" twint -u PROFILE --user-full --json -o output/PROFILE.json +``` ## CLI Basic Examples and Combos A few simple examples to help you understand the basics: