-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 1.05 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
FROM phusion/baseimage:0.9.16
MAINTAINER J.R. Arseneau <http://github.com/jrarseneau>
ENV LANG en_US.UTF-8
RUN locale-gen $LANG
# To get rid of error messages like "debconf: unable to initialize frontend: Dialog":
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty multiverse" >> /etc/apt/sources.list
# Update our image
RUN apt-get -q update
RUN apt-get -qy --force-yes dist-upgrade
# Install required packages
RUN apt-get install -qy avahi-daemon avahi-utils libavahi-client3 wget
# Download and install Plex (non plexpass)
# This gets the latest non-plexpass version
RUN wget -P /tmp `wget -q --no-check-certificate -O - https://plex.tv/downloads | grep -o '[^"'"'"']*amd64.deb'|grep -v binaries`
RUN dpkg -i /tmp/plex*.deb
RUN rm -f /tmp/plex*.deb
EXPOSE 32400
VOLUME /volumes/config
VOLUME /volumes/media
VOLUME /volumes/tmp
RUN mkdir /etc/service/plexmediaserver
ADD start.sh /etc/service/plexmediaserver/run
ADD plexmediaserver /etc/default/plexmediaserver
CMD ["/sbin/my_init"]