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

Fix docker file and add doc about how to use it #1300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ LABEL maintainer="[email protected]"

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"]
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down