File tree 4 files changed +38
-6
lines changed
4 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM debian:jessie
1
+ FROM phusion/baseimage:0.9.11
2
2
MAINTAINER needo <
[email protected] >
3
3
ENV DEBIAN_FRONTEND noninteractive
4
4
5
+ # Set correct environment variables
6
+ ENV HOME /root
7
+
8
+ # Use baseimage-docker's init system
9
+ CMD ["/sbin/my_init" ]
10
+
5
11
# Fix a Debianism of the nobody's uid being 65534
6
12
RUN usermod -u 99 nobody
7
13
RUN usermod -g 100 nobody
@@ -28,7 +34,12 @@ VOLUME /downloads
28
34
# Movies directory
29
35
VOLUME /movies
30
36
31
- # Because running things as root is wrong
32
- USER nobody
33
- ENTRYPOINT ["python" , "/opt/couchpotato/CouchPotato.py" ]
34
- CMD ["--config_file=/config/config.ini" , "--data_dir=/config/data" ]
37
+ # Add edge.sh to execute during container startup
38
+ RUN mkdir -p /etc/my_init.d
39
+ ADD edge.sh /etc/my_init.d/edge.sh
40
+ RUN chmod +x /etc/my_init.d/edge.sh
41
+
42
+ # Add CouchPotato to runit
43
+ RUN mkdir /etc/service/couchpotato
44
+ ADD couchpotato.sh /etc/service/couchpotato/run
45
+ RUN chmod +x /etc/service/couchpotato/run
Original file line number Diff line number Diff line change 1
1
This is a Dockerfile setup for couchpotato - https://couchpota.to/
2
2
3
- To run :
3
+ By default this Docker installs the latest stable version of CouchPotato :
4
4
5
5
docker run -d --net="host" --name="couchpotato" -v /path/to/couchpotato/data:/config -v /path/to/downloads:/downloads -v /path/to/movies:/movies -v /etc/localtime:/etc/localtime: ro -p 5050:5050 needo/couchpotato
6
+
7
+ Edge
8
+ ----
9
+ If you would like to run the latest updates from the master branch as well as enable in-app updates run:
10
+
11
+ docker run -d --net="host" --name="couchpotato" -v /path/to/couchpotato/data:/config -v /path/to/downloads:/download
12
+ s -v /path/to/movies:/movies -v /etc/localtime:/etc/localtime: ro -e EDGE=1 -p 5050:5050 needo/couchpotato
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ exec /sbin/setuser nobody python /opt/couchpotato/CouchPotato.py --config_file=/config/config.ini --data_dir=/config/data
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Does the user want the latest version
4
+ if [ -z " $EDGE " ]; then
5
+ echo " Bleeding edge not requested"
6
+ else
7
+ apt-get install -qy git
8
+ rm -rf /opt/couchpotato
9
+ git clone https://github.com/RuudBurger/CouchPotatoServer.git /opt/couchpotato
10
+ chown -R nobody:users /opt/couchpotato
11
+ fi
You can’t perform that action at this time.
0 commit comments