Just use the following command while you are in the directory containing this Dockerfile:
docker build .
Last line of example output showing the created image's id:
Successfully built <image_id>
The following command will start telegram-cli in the current terminal:
docker run -it --rm -v <profile_on_host>:/root/.telegram-cli <image_id>
-itstarts interactive session--rmremoves the container after it stops-v <profile_on_host>:/root/.telegram-climounts profile directory from host<image_id>determines what image to use