first commit

This commit is contained in:
2025-02-23 20:31:57 -06:00
commit 34b4252adf
9 changed files with 366 additions and 0 deletions

35
Dockerfile Normal file
View File

@@ -0,0 +1,35 @@
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"]