| FROM ubuntu:24.04 |
|
|
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| curl \ |
| wget \ |
| ca-certificates \ |
| gnupg \ |
| lsb-release \ |
| dnsutils \ |
| && curl -1sLf 'https://dl.cloudsmith.io/public/tvheadend/tvheadend/setup.deb.sh' | bash \ |
| && apt-get update && apt-get install -y \ |
| tvheadend \ |
| ffmpeg \ |
| python3 \ |
| python3-pip \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN curl -L -o /usr/local/bin/cloudflared https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 && \ |
| chmod +x /usr/local/bin/cloudflared |
|
|
| |
| RUN pip3 install --no-cache-dir --break-system-packages requests flask pytz Pillow beautifulsoup4 |
|
|
| WORKDIR /app |
|
|
| COPY . /app/ |
| COPY start.sh /app/start.sh |
| COPY logo1.png /app/logo1.png |
| COPY hbo.png /app/hbo.png |
| COPY logo_animator.py /app/logo_animator.py |
| COPY fetch_epg.py /app/fetch_epg.py |
| COPY fetch_epg_paramount.py /app/fetch_epg_paramount.py |
| COPY proxy.py /app/proxy.py |
| COPY playlist.m3u /app/playlist.m3u |
|
|
| RUN sed -i 's/\r$//' /app/start.sh && chmod +x /app/start.sh |
|
|
| EXPOSE 7860 9981 9982 |
|
|
| CMD ["/bin/bash", "/app/start.sh"] |