mirror of
https://github.com/dbv111m/musicgrabber.git
synced 2026-10-18 17:20:37 -05:00
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.
12 lines
383 B
Docker
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"]
|