first commit
This commit is contained in:
35
Dockerfile
Normal file
35
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user