Dockerfile fixes

This commit is contained in:
Soxoj
2020-12-05 00:48:24 +03:00
parent d39b699744
commit ea01a33bcd
3 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
.git/
.vscode/
screenshot/
static/
tests/
*.txt
!/requirements.txt
+2 -1
View File
@@ -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"]
+16 -1
View File
@@ -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)<br/>
MIT © [Maigret](https://github.com/soxoj/maigret)<br/>
MIT © [Sherlock Project](https://github.com/sherlock-project/)<br/>
Original Creator of Sherlock Project - [Siddharth Dushantha](https://github.com/sdushantha)