From 134cc1c60d9a3335ca3c26c158a8abbd4a360b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Di=20Biase?= Date: Wed, 3 Nov 2021 16:13:22 -0300 Subject: [PATCH] Fix docker file and add doc about how to use it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Luis Di Biase --- Dockerfile | 8 ++++---- README.md | 12 +++++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) 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: