elgammalx/tweb
Production-ready Telegram Web K Docker image based on Nginx.
106
Production-ready build of Telegram Web K, a web-based Telegram client, optimized for Nginx.
Building the Image: Dockerised source code Moustafa-Elgammal/tweb forked from morethanwords/tweb the web source code for web.telegram.org
To build the Docker image, use the following command:
docker build -f ./.docker/Dockerfile_production -t your_dockerhub_username/tweb:latest .
This will start the container and expose the application on port 80.
The Dockerfile for the production image performs the following steps:
node:18
as the base image./app
.pnpm
globally and then uses it to install both development and production dependencies.nginx:stable-alpine3.19-slim
image and copies the build files to the Nginx directory.For convenience, you can use the following docker-compose.yml
to set up the production environment:
version: '3.8'
services:
telegram-web-k:
image: elgammalx/tweb
ports:
- "80:80"
docker pull elgammalx/tweb