Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit 134cc1c

Browse files
committed
Fix docker file and add doc about how to use it
Signed-off-by: José Luis Di Biase <[email protected]>
1 parent e7c8a0c commit 134cc1c

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ LABEL maintainer="[email protected]"
33

44
WORKDIR /root
55

6-
RUN git clone --depth=1 https://github.com/twintproject/twint.git && \
7-
cd /root/twint && \
8-
pip3 install . -r requirements.txt
6+
COPY . /root/
7+
RUN cd /root && mkdir output && pip3 install . -r requirements.txt
98

10-
CMD /bin/bash
9+
10+
ENTRYPOINT ["twint"]

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,17 @@ pip3 install --user --upgrade git+https://github.com/twintproject/twint.git@orig
6363
pipenv install git+https://github.com/twintproject/twint.git#egg=twint
6464
```
6565

66-
### March 2, 2021 Update
66+
### Docker
6767

68-
**Added**: Dockerfile
68+
##### Build
69+
```bash
70+
docker build . -t twint
71+
```
6972

70-
Noticed a lot of people are having issues installing (including me). Please use the Dockerfile temporarily while I look into them.
73+
##### Run
74+
```bash
75+
docker run --rm -it -v "$PWD:/root/output" twint -u PROFILE --user-full --json -o output/PROFILE.json
76+
```
7177

7278
## CLI Basic Examples and Combos
7379
A few simple examples to help you understand the basics:

0 commit comments

Comments
 (0)