Files
musicgrabber/Dockerfile.telegram
user1 21dd9a7da3 Telegram bot: standalone module decoupled from app internals
Bot now talks to the app purely over its HTTP API (X-API-Key auth) and
keeps per-chat state in its own sqlite. No imports from app code, no
ALTER of the app's jobs table, dead /api/check-file path removed (server
-side dedupe replaced it), convert_to_flac -> convert_audio. Own slim
Dockerfile + compose overlay, so upstream files stay untouched and
future merges are conflict-free.
2026-10-13 19:14:26 +00:00

12 lines
383 B
Docker

# Standalone Telegram module for MusicGrabber. Deliberately separate from the
# upstream Dockerfile: this image only needs the bot + HTTP, so upstream image
# changes never affect it and merges stay conflict-free.
FROM python:3.12-slim
RUN pip install --no-cache-dir "python-telegram-bot~=21.10" "httpx~=0.28"
WORKDIR /app
COPY telegram_bot.py .
CMD ["python", "telegram_bot.py"]