diff --git a/.dockerignore b/.dockerignore index 9978ae9..789a761 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,6 @@ .git/ .vscode/ -screenshot/ +static/ tests/ *.txt !/requirements.txt diff --git a/Dockerfile b/Dockerfile index 5af2c73..52c0d55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,9 @@ LABEL org.label-schema.vcs-ref=$VCS_REF \ org.label-schema.vcs-url=$VCS_URL COPY --from=build /wheels /wheels COPY . /opt/maigret/ +RUN apk add git RUN pip3 install -r requirements.txt -f /wheels \ && rm -rf /wheels \ && rm -rf /root/.cache/pip/* -ENTRYPOINT ["python", "maigret.py"] +ENTRYPOINT ["python", "maigret"] diff --git a/README.md b/README.md index 2b0d27a..5fb952b 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,21 @@ $ git clone https://git.rip/soxoj/maigret && cd maigret $ python3 -m pip install -r requirements.txt ``` +## Using examples + +```bash +python3 maigret user + +python3 maigret user1 user2 user3 +``` + +With Docker: +``` +docker build -t maigret . + +docker run maigret user +``` + ## Demo with page parsing and recursive username search ```bash @@ -49,6 +64,6 @@ python3 maigret alexaimephotographycars ## License -MIT © [Maigret](https://git.rip/soxoj/maigret)
+MIT © [Maigret](https://github.com/soxoj/maigret)
MIT © [Sherlock Project](https://github.com/sherlock-project/)
Original Creator of Sherlock Project - [Siddharth Dushantha](https://github.com/sdushantha)