add: Docker

This commit is contained in:
Евгений Панков 2025-08-15 20:36:26 +03:00
parent bb7d6b03be
commit fa29adf300
2 changed files with 40 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM debian:bookworm-slim
WORKDIR /app
# Копируем ВСЁ из репозитория
COPY . .
ENV TZ=Europe/Moscow
# Устанавливаем зависимости и делаем скрипты исполняемыми
RUN chmod +x portable_install.sh && \
./portable_install.sh
# Указываем команду запуска
CMD ["./run_me.sh"]

26
docker-compose.yml Normal file
View File

@ -0,0 +1,26 @@
version: '3.8'
services:
app:
image: debian:bookworm-slim
container_name: alert-telethon-app
working_dir: /app
volumes:
- .:/app # весь проект
environment:
- TZ=Europe/Moscow # часовой пояс Москва
command: >
/bin/bash -c "
apt-get update &&
apt-get install -y --no-install-recommends curl tar bash &&
chmod +x portable_install.sh &&
./portable_install.sh &&
./run_me.sh
"
restart: unless-stopped
networks:
- alert-telethon_net
networks:
alert-telethon_net:
driver: bridge