forked from pith/docker-plex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (34 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
FROM ubuntu:15.10
MAINTAINER Tim Haak <[email protected]>
ENV DEBIAN_FRONTEND="noninteractive" \
TERM="xterm"
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup &&\
echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache && \
apt-get -q update && \
apt-get -qy --force-yes dist-upgrade && \
apt-get install -qy --force-yes \
iproute2 \
ca-certificates \
openssl \
xmlstarlet \
curl \
sudo \
&& \
echo "deb http://shell.ninthgate.se/packages/debian wheezy main" > /etc/apt/sources.list.d/plexmediaserver.list && \
curl http://shell.ninthgate.se/packages/shell-ninthgate-se-keyring.key | apt-key add - && \
apt-get -q update && \
apt-get install -qy --force-yes plexmediaserver && \
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
VOLUME ["/config","/data"]
ENV RUN_AS_ROOT="true" \
CHANGE_DIR_RIGHTS="false" \
CHANGE_CONFIG_DIR_OWNERSHIP="true" \
HOME="/config"
ADD ./start.sh /start.sh
ADD ./Preferences.xml /Preferences.xml
RUN chmod u+x /start.sh
EXPOSE 32400
CMD ["/start.sh"]