I hate the future
Please dont use docker, use podman instead
reason is that if you saved a file from telegram to your host, it will be saved as root user and your user cannot delete it and podman runs as your user, so thats not an issue.
save this as docker-compose.yml
version: '3.5'
services:
64gram:
build: .
hostname: 64gram
image: git.shihaam.dev/dockerfiles/64gram
environment:
- DISPLAY # For GUI access
- XDG_OPEN_LISTENER_PORT=6969 # Set this to port number of socat server
- XDG_OPEN_LISTENER_HOST=192.168.x.x # set this to your host machine IP
devices:
- /dev/snd:/dev/snd # Mic and Speaker support
- /dev/video0:/dev/video0 # Webcam support
volumes:
- $HOME/.local/share/64Gram:/root/.local/share/64Gram # Telegram data
- $HOME/Downloads:/root/Downloads # Downloads folder
- $HOME/Pictures:/root/Pictures # Pictures folder
- $HOME/Documents:/root/Documents # Documents folder
- /usr/share/icons:/usr/share/icons # Icons for UI, like Mouse cursor
- /tmp/.X11-unix:/tmp/.X11-unix # X11 socket for GUI
obviously change the XDG_OPEN_LISTENER_HOST to your host machines IP.
and run podman-compose up -d
or if you wanna live dangerously then you may..: docker compose up -d
Telegram cannot open links from the container to host machine, and to work around that is this script, be sure to run it along with the container
#!/bin/bash
XDG_OPEN_LISTENER_PORT-6969
socat TCP-LISTEN:$XDG_OPEN_LISTENER_PORT,fork EXEC:"xargs -n 1 xdg-open"`
k, thanks, bye
Description
I refuse to use newer version of Telegram or 64gram and I like this version of 64gram, so i want to put it in a container with proper dependencies before it stops working in the future.
Languages
Dockerfile
73.3%
Shell
26.7%