commit 0d8c8b342283d6a334b2c8007a2cb59f464ecfbd Author: Dominique Barton Date: Thu Jul 9 23:23:29 2015 +0200 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d5545d4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM debian:8 +MAINTAINER confirm IT solutions, dbarton + +RUN apt-get -q update \ + && apt-get install -qy git python-cheetah python-openssl \ + && apt-get -y autoremove \ + && apt-get -y clean \ + && rm -rf /var/lib/apt/lists/* \ + && rm -rf /tmp/* + +RUN groupadd -r -g 666 couchpotato \ + && useradd -r -u 666 -g 666 couchpotato + +RUN git clone https://github.com/RuudBurger/CouchPotatoServer.git /couchpotato \ + && chown -R couchpotato: /couchpotato + +ADD start.sh /start.sh +RUN chown couchpotato: /start.sh \ + && chmod 755 /start.sh + +VOLUME ['/datadir', '/media'] + +EXPOSE 443 + +USER couchpotato + +CMD /start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..34b0e53 --- /dev/null +++ b/start.sh @@ -0,0 +1,4 @@ +#!/bin/sh +cd /sickbeard +git pull +./SickBeard.py --nolaunch --datadir=/datadir --config=/datadir/config.ini