|
|
@ -3,11 +3,9 @@ MAINTAINER Stian Larsen <lonixx@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
# Install Plex
|
|
|
|
# Install Plex
|
|
|
|
RUN apt-get -q update && \
|
|
|
|
RUN apt-get -q update && \
|
|
|
|
PLEXURL=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "ubuntu64" | cut -d '"' -f 4) && \
|
|
|
|
|
|
|
|
apt-get install -qy dbus avahi-daemon wget && \
|
|
|
|
apt-get install -qy dbus avahi-daemon wget && \
|
|
|
|
wget -P /tmp "$PLEXURL" && \
|
|
|
|
curl -L 'https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu' -o /tmp/plexmediaserver.deb && \
|
|
|
|
dpkg -i /tmp/plexmediaserver_*_amd64.deb && \
|
|
|
|
dpkg -i /tmp/plexmediaserver.deb && rm -f /tmp/plexmediaserver.deb && \
|
|
|
|
rm -f /tmp/plexmediaserver_*_amd64.deb && \
|
|
|
|
|
|
|
|
apt-get clean && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
|
|
|
|
|
|
@ -18,7 +16,7 @@ COPY services/ /etc/service/
|
|
|
|
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
|
|
|
|
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
|
|
|
|
|
|
|
|
|
|
|
|
# Define /config in the configuration file not using environment variables
|
|
|
|
# Define /config in the configuration file not using environment variables
|
|
|
|
ADD plexmediaserver /defaults/plexmediaserver
|
|
|
|
COPY plexmediaserver /defaults/plexmediaserver
|
|
|
|
|
|
|
|
|
|
|
|
#Mappings and ports
|
|
|
|
#Mappings and ports
|
|
|
|
VOLUME ["/config", "/transcode"]
|
|
|
|
VOLUME ["/config", "/transcode"]
|
|
|
|