-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 845 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.11-slim
# Install system dependencies: ffmpeg (audio/video), wine (for DRM), wget for yt-dlp, and curl for DRM checks
RUN apt-get update && \
apt-get install -y ffmpeg wine wget curl && \
apt-get clean
# Install yt-dlp (used in modules/downloader.py)
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && \
chmod a+rx /usr/local/bin/yt-dlp
# Set working directory
WORKDIR /app
# Copy TGHRip source code and requirements.txt
COPY TGHRip /app/TGHRip
COPY requirements.txt /app/requirements.txt
# Create downloads directory
RUN mkdir -p /app/TGHRip/downloads
# Install Python dependencies
RUN python3 -m pip install --no-cache-dir -r /app/requirements.txt
# Default command to run the Telegram bot (change to main.py or web-dl.py as needed)
CMD ["python3", "bot.py"]