FROM python:3.11-slim # Install system dependencies including FFmpeg RUN apt-get update && apt-get install -y \ ffmpeg \ curl \ && rm -rf /var/lib/apt/lists/* # Install Streamlink RUN pip install --no-cache-dir streamlink # Set working directory WORKDIR /app # Copy application code COPY src/ ./src/ # Install Python dependencies RUN pip install --no-cache-dir -r src/requirements.txt # Create data directory RUN mkdir /data # Create a symlink from /app/data to /data RUN ln -s /data /app/data # Volume configuration VOLUME ["/data"] # Expose the port EXPOSE 6090 # Command to run the application CMD ["python", "src/stream_link_server.py"]