34 lines
1.1 KiB
Markdown
34 lines
1.1 KiB
Markdown
## 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`
|
|
```yml
|
|
version: '3.5'
|
|
|
|
services:
|
|
64gram:
|
|
build: .
|
|
hostname: 64gram
|
|
image: git.shihaam.dev/dockerfiles/64gram
|
|
environment:
|
|
- DISPLAY # For GUI access
|
|
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
|
|
```
|
|
and run `podman-compose up -d` or if you wanna live dangerously then you may..: `docker compose up -d`
|
|
|
|
k, thanks, bye
|