From 29585ae9723a7a3979a9208c2a5efd6a127e9666 Mon Sep 17 00:00:00 2001 From: Nameless Date: Tue, 9 Jun 2020 04:03:52 +0800 Subject: [PATCH] Add docker (#74) * Update README * Add docker for testing and it is a fast way to try our client Co-authored-by: Alex --- Dockerfile | 5 +++++ README.md | 5 +++++ pyproject.toml | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..35d4533 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.8.3-slim-buster + +RUN pip install tg + +CMD tg diff --git a/README.md b/README.md index e60a2f9..d8f32aa 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 6fe1cc9..85933c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,4 +21,4 @@ line-length = 79 [tool.isort] line_length = 79 multi_line_output = 3 -include_trailing_comma = true +include_trailing_comma = true \ No newline at end of file