Use templating with Dockerfile in order to have less rebuilds

This commit is contained in:
Ilya Fedin
2022-06-28 15:32:29 +04:00
committed by John Preston
parent 653f17915e
commit 9502ce8b32
8 changed files with 316 additions and 198 deletions

View File

@@ -10,13 +10,14 @@ You will require **api_id** and **api_hash** to access the Telegram API servers.
### Prepare libraries
Go to the `tdesktop` directory and run
Install [poetry](https://python-poetry.org), go to the `tdesktop/Telegram/build/docker/centos_env` directory and run
docker build -t tdesktop:centos_env Telegram/build/docker/centos_env/
poetry install
poetry run gen_dockerfile | docker build -t tdesktop:centos_env -
### Building the project
Make sure that you're still in the `tdesktop` directory and run (using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
Go up to the `tdesktop` directory and run (using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
docker run --rm -it \
-v $PWD:/usr/src/tdesktop \