forked from m3ue/m3u-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (36 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
47 lines (36 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM linuxserver/ffmpeg:latest
# Install Python and system dependencies
RUN apt-get update && apt-get install -y \
# Add common utilities
pciutils \
wget \
nano \
# Python dependencies
python3 \
python3-pip \
python3-venv \
curl \
&& rm -rf /var/lib/apt/lists/*
# Create symlink for python command
RUN ln -s /usr/bin/python3 /usr/bin/python
# Set working directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN python3 -m pip install --no-cache-dir -r requirements.txt --break-system-packages
# Copy application code
COPY src/ ./src/
COPY main.py .
COPY .env.example .env
# Copy static files (logo and favicon)
COPY static/ ./static/
# Copy Docker scripts
COPY docker/ ./docker/
# Create directories
RUN mkdir -p /tmp/m3u-proxy-streams
# Make scripts executable
RUN chmod +x /app/docker/entrypoint.sh /app/docker/check-hwaccel.sh /app/docker/verify-hwaccel.sh
# Environment variables
ENV PYTHONPATH=/app
# Override the default entrypoint and run the application
ENTRYPOINT ["/app/docker/entrypoint.sh"]