Skip to content

Commit

Permalink
initial service
Browse files Browse the repository at this point in the history
  • Loading branch information
matthuisman committed Sep 25, 2023
1 parent 0dc5b1d commit d59de8e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/service/40-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv bash

mkdir -p /config/kodi.proxy

chown -R abc:abc /usr/share/kodi.proxy
chown -R abc:abc /config/kodi.proxy
16 changes: 16 additions & 0 deletions docker/service/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM linuxserver/tvheadend

RUN apk add --no-cache python3 py3-virtualenv wget git

RUN cd /usr/share \
&& wget -O proxy.tar.gz https://codeload.github.com/matthuisman/kodi.proxy/tar.gz/master \
&& tar -xf proxy.tar.gz \
&& rm proxy.tar.gz \
&& mv kodi.proxy-* kodi.proxy \
&& cd kodi.proxy \
&& echo "userdata=/config/kodi.proxy" >> config.ini \
&& python proxy.py "install://script.module.slyguy"

COPY 40-config /etc/cont-init.d/40-config

CMD [ "python", "-u", "proxy.py", "plugin://script.module.slyguy", "service" ]

0 comments on commit d59de8e

Please sign in to comment.