Files
streamlink-server/Dockerfile
2025-02-23 20:31:57 -06:00

35 lines
682 B
Docker

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/
COPY env ./src/.env
# 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"]