Add docker (#74)

* Update README

* Add docker for testing and it is a fast way to try our client

Co-authored-by: Alex <lightme16@users.noreply.github.com>
This commit is contained in:
Nameless 2020-06-09 04:03:52 +08:00 committed by GitHub
parent 6eb0c60b98
commit 29585ae972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM python:3.8.3-slim-buster
RUN pip install tg
CMD tg

View file

@ -43,6 +43,11 @@ cd tg
PYTHONPATH=. python3 tg/main.py
```
Docker (voice recordings and notifications won't work):
```sh
docker run -it --rm tg
```
## Optional dependencies
- [tdlib](https://tdlib.github.io/td/build.html?language=Python) - in case of incompatibility with built in package

View file

@ -21,4 +21,4 @@ line-length = 79
[tool.isort]
line_length = 79
multi_line_output = 3
include_trailing_comma = true
include_trailing_comma = true