transcriptor/docker/downloader/Dockerfile
2025-03-21 15:22:31 +01:00

27 lines
1006 B
Docker

FROM python:3.9-slim
WORKDIR /app
# Install required system packages including MariaDB development headers and gcc
RUN apt-get update && \
apt-get install -y ffmpeg jq curl unzip libmariadb-dev gcc && \
rm -rf /var/lib/apt/lists/*
# Copy requirements file (if you have one) and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir requests yt-dlp mariadb
# Download TwitchDownloaderCLI (adjust version if necessary)
RUN curl -L https://github.com/lay295/TwitchDownloader/releases/download/1.55.2/TwitchDownloaderCLI-1.55.2-Linux-x64.zip \
-o /tmp/TwitchDownloaderCLI.zip && \
unzip /tmp/TwitchDownloaderCLI.zip -d /tmp && \
mv /tmp/TwitchDownloaderCLI /usr/local/bin/TwitchDownloaderCLI && \
chmod +x /usr/local/bin/TwitchDownloaderCLI && \
rm /tmp/TwitchDownloaderCLI.zip
# Copy application code, the entrypoint script, and channels.json
COPY download_only.py .
COPY cookies.txt .
# Default command
CMD ["python", "-u", "download_only.py"]