-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
49 lines (38 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM debian:9
MAINTAINER Dominique Barton
#
# Create user and group for CouchPotato.
#
RUN groupadd -r -g 666 couchpotato \
&& useradd -r -u 666 -g 666 -d /couchpotato couchpotato
#
# Add CouchPotato init script.
#
ADD couchpotato.sh /couchpotato.sh
RUN chmod 755 /couchpotato.sh
#
# Install CouchPotato and all required dependencies.
#
RUN export VERSION=3.0.1 \
&& apt-get -q update \
&& apt-get install -qy curl ca-certificates python-pip python-dev libz-dev libxml2-dev libxslt1-dev gcc \
&& curl -o /tmp/couchpotato.tar.gz https://codeload.github.com/CouchPotato/CouchPotatoServer/tar.gz/build/${VERSION} \
&& tar xzf /tmp/couchpotato.tar.gz \
&& mv CouchPotatoServer-* couchpotato \
&& chown -R couchpotato: couchpotato \
&& pip install cheetah lxml pyopenssl \
&& apt-get -y remove curl python-dev libz-dev libxml2-dev libxslt1-dev gcc \
&& apt-get -y autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/*
#
# Define container settings.
#
VOLUME ["/datadir", "/media"]
EXPOSE 5050
#
# Start CouchPotato.
#
WORKDIR /couchpotato
CMD ["/couchpotato.sh"]