forked from pith/docker-plex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (46 loc) · 1.43 KB
/
Dockerfile
File metadata and controls
55 lines (46 loc) · 1.43 KB
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
50
51
52
53
54
55
FROM ubuntu:16.04
MAINTAINER Tim Haak <tim@haak.co>
ENV DEBIAN_FRONTEND="noninteractive" \
TERM="xterm" \
PLEX_TYPE_FLAG="-p"
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 dist-upgrade && \
apt-get install -qy \
iproute2 \
ca-certificates \
ffmpeg \
git \
jq \
openssl \
xmlstarlet \
curl \
sudo \
wget \
&& \
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
ARG PLEX_PASS='false'
ARG PLEX_USER_NAME=''
ARG PLEX_USER_PASS=''
RUN if [ "${PLEX_PASS}" = "true" ]; then PLEX_TYPE_FLAG="--email=${PLEX_USER_NAME} --pass=${PLEX_USER_PASS}" ; fi && \
git clone --depth 1 https://github.com/mrworf/plexupdate.git /plexupdate && \
/plexupdate/plexupdate.sh ${PLEX_TYPE_FLAG} -a -d && \
apt-get -y purge git &&\
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" \
PLEX_DISABLE_SECURITY=1
EXPOSE 32400 1900/udp 3005 5353/udp 8324 32410/udp 32412/udp 32413/udp 32414/udp 32469
COPY ./Preferences.xml /Preferences.xml
COPY ./start.sh /start.sh
CMD ["/start.sh"]