submit lonix pr via fork
This commit is contained in:
parent
dc82242912
commit
a781ff9564
1 changed files with 9 additions and 9 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -3,20 +3,20 @@ MAINTAINER Stian Larsen <lonixx@gmail.com>
|
||||||
|
|
||||||
# Install Plex
|
# Install Plex
|
||||||
RUN apt-get -q update && \
|
RUN apt-get -q update && \
|
||||||
VERSION=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "version" | cut -d '"' -f 4) && \
|
PLEXURL=$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "ubuntu64" | cut -d '"' -f 4) && \
|
||||||
apt-get install -qy dbus gdebi-core avahi-daemon wget && \
|
apt-get install -qy dbus gdebi-core avahi-daemon wget && \
|
||||||
wget -P /tmp "https://downloads.plex.tv/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" && \
|
wget -P /tmp "$PLEXURL" && \
|
||||||
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
gdebi -n /tmp/plexmediaserver_*_amd64.deb && \
|
||||||
rm -f /tmp/plexmediaserver_${VERSION}_amd64.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/*
|
||||||
|
|
||||||
|
|
||||||
#Adding Custom files
|
#Adding Custom files
|
||||||
ADD init/ /etc/my_init.d/
|
COPY init/ /etc/my_init.d/
|
||||||
ADD services/ /etc/service/
|
COPY services/ /etc/service/
|
||||||
RUN chmod -v +x /etc/service/*/run
|
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
|
||||||
RUN chmod -v +x /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
|
ADD plexmediaserver /defaults/plexmediaserver
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue