Skip to content

Commit

Permalink
setup: Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dolohow committed Mar 6, 2021
1 parent aad47d5 commit 6151fba
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.9

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY tdpt .

VOLUME /config

ENTRYPOINT [ "python", "__main__.py"]
CMD ["--config", "/config/tdpt.ini"]
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ Torrent downloading progress on Telegram


## Installation
You need Python 3 to run this program.

```
$ pip install --user tdpt
### Docker
Download config file and edit it for your needs
```bash
wget https://raw.githubusercontent.com/dolohow/tdpt/master/config/tdpt.ini
```

Create configuration file
```
$ cp tdpt.ini.template tdpt.ini
```bash
podman run -d \
--name tdpt \
-v PATH_TO_DIR_WITH_TDPT_INI:/config \
dolohow/tdpt
```
Edit it and save.
File renamed without changes.

0 comments on commit 6151fba

Please sign in to comment.