-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
136 lines (121 loc) · 3.48 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
FROM tcf909/ubuntu-slim:latest
MAINTAINER T.C. Ferguson <tcf909@gmail.com>
#
# General
#
RUN apt-get update && \
apt-get upgrade && \
if [ "${DEBUG}" = "true" ]; then \
apt-get install vim iptables net-tools iputils-ping mtr; \
fi && \
#CURL
apt-get purge curl || echo 'no curl ' && \
apt-get install build-essential && \
wget -q 'https://curl.haxx.se/download/curl-7.54.0.tar.gz' -O /tmp/curl.tar.gz && \
apt-get install libssl-dev && \
cd /tmp && \
tar zxvf curl.tar.gz && \
cd curl-* && \
./configure --libdir=/usr/lib/x86_64-linux-gnu && \
make && \
make install && \
cd ~ && \
#cleanup
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#
#RSYNC
#
EXPOSE 873
RUN apt-get update && \
apt-get install \
rsync && \
#cleanup
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#
#WATCHER
#
#RUN apt-get update && \
# apt-get install \
# inotify-tools && \
# #cleanup
# apt-get autoremove && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#
#FILEBOT
#
#RUN apt-get update && \
# apt-get install \
# wget \
# openjdk-8-jre \
# libmediainfo0v5 && \
# wget -q 'http://filebot.sourceforge.net/download.php?type=deb&arch=amd64' -O /tmp/filebot-amd64.deb && \
# dpkg --force-depends -i /tmp/filebot-*.deb && \
# #cleanup
# apt-get autoremove && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#
# RCLONE
#
ARG RCLONE_URL=https://beta.rclone.org/v1.43-172-g83b1ae48-beta/rclone-v1.43-172-g83b1ae48-beta-linux-amd64.zip
RUN apt-get update && \
apt-get install \
unzip \
fuse && \
cd /tmp && \
wget -q ${RCLONE_URL} -O rclone.zip && \
unzip -j rclone.zip -d rclone && \
mv /tmp/rclone/rclone /usr/local/bin/ && \
cd ~ && \
#cleanup
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# PLEX
#
HEALTHCHECK --interval=60s --timeout=60s CMD /scripts/healthcheck.sh || exit 1
EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp
VOLUME /config /transcode
ENV PLEX_CHANGE_CONFIG_DIR_OWNERSHIP="false" \
PLEX_HOME_DIR="/config"
RUN apt-get update && \
apt-get install \
tzdata \
xmlstarlet \
uuid-runtime && \
#Add Users
useradd -g 0 -o -u 0 -d /config -s /bin/false plex && \
usermod -G users plex && \
# Setup directories
mkdir -p \
/config \
/transcode \
/data && \
#cleanup
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#FileSystem
COPY rootfs/ /
#
# Plex Post Build
#
#1.5.1 (working audio transcode)
#ARG TAG="1.5.1.3520-ed60c70d6"
#ARG URL="https://downloads.plex.tv/plex-media-server/1.5.1.3520-ed60c70d6/plexmediaserver_1.5.1.3520-ed60c70d6_amd64.deb"
#1.10.1
#ARG TAG="1.10.1.4602-f54242b6b"
#ARG URL="https://downloads.plex.tv/plex-media-server/1.10.1.4602-f54242b6b/plexmediaserver_1.10.1.4602-f54242b6b_amd64.deb"
#1.13.2
#ARG TAG="1.13.2.5154-fd05be322"
#ARG URL="https://downloads.plex.tv/plex-media-server/1.13.2.5154-fd05be322/plexmediaserver_1.13.2.5154-fd05be322_amd64.deb"
ARG TAG="1.13.9.5439-7303bc002"
ARG URL="https://downloads.plex.tv/plex-media-server/1.13.9.5439-7303bc002/plexmediaserver_1.13.9.5439-7303bc002_amd64.deb"
RUN \
#install plex
/scripts/installBinary.sh