Skip to content

Instantly share code, notes, and snippets.

@rubyon
Last active March 24, 2017 14:44
Show Gist options
  • Save rubyon/50c304ac640badb33efa4bec7c4e53f7 to your computer and use it in GitHub Desktop.
Save rubyon/50c304ac640badb33efa4bec7c4e53f7 to your computer and use it in GitHub Desktop.
FROM linuxserver/tvheadend
MAINTAINER 1.0 rubyon@me.com
RUN apk update
RUN apk add git gcc python-dev libxml2-dev libxslt-dev musl-dev py-pip
RUN pip install --upgrade pip
RUN pip install requests BeautifulSoup4 lxml
RUN git clone https://github.com/wonipapa/epg2xml.git
RUN chmod +x /epg2xml/epg2xml.py && chmod 755 /epg2xml/Channel.json
RUN echo "/epg2xml/./epg2xml.py -i SK -s /config/epggrab/xmltv.sock" > /epg.sh
RUN touch crontab.tmp && echo '* */12 * * * /bin/sh /epg.sh' > crontab.tmp && crontab crontab.tmp && rm -rf crontab.tmp
CMD ["crond", "-f", "-d", "8"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment