Files
docker-epg/Dockerfile
Dnny44 6db70e71eb
Some checks failed
Build and Push Image / Build and push image (push) Failing after 2m23s
Implement Caddy
2024-08-08 15:17:36 -05:00

18 lines
493 B
Docker

FROM node:20-slim
RUN apt-get update && apt-get install -y git python3
RUN mkdir /epg
RUN git clone --depth 1 -b master https://github.com/iptv-org/epg.git /epg
RUN mkdir /epg/channels
COPY channels.xml /epg/channels/
RUN mkdir /epg/guides
WORKDIR /epg
RUN npm install
RUN curl -sS https://webi.sh/caddy | sh
RUN source ~/.config/envman/PATH.env
CMD npm run grab -- --cron "0 3 * * *" --output guides/guide.xml --channels channels/channels.xml ; caddy file-server --browse --root guides/