From 5614ba2c0a2961a2426f1d9c8a98578447f5ddec Mon Sep 17 00:00:00 2001 From: t0is Date: Fri, 21 Feb 2025 15:31:19 +0100 Subject: [PATCH] chat edits --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e5fb50..108ed9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,22 @@ FROM python:3.9-slim WORKDIR /app RUN apt-get update && \ - apt-get install -y ffmpeg jq && \ + apt-get install -y ffmpeg jq curl unzip && \ 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 -r requirements.txt + +# 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 main.py . COPY channels.json .