File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,23 +3,23 @@ MAINTAINER Stian Larsen <lonixx@gmail.com>
33
44# Install Plex
55RUN apt-get -q update && \
6- VERSION =$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "version " | cut -d '"' -f 4) && \
6+ PLEXURL =$(curl -s https://tools.linuxserver.io/latest-plex.json| grep "ubuntu64 " | cut -d '"' -f 4) && \
77apt-get install -qy dbus gdebi-core avahi-daemon wget && \
8- wget -P /tmp "https://downloads.plex.tv/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb " && \
9- gdebi -n /tmp/plexmediaserver_${VERSION} _amd64.deb && \
10- rm -f /tmp/plexmediaserver_${VERSION} _amd64.deb && \
8+ wget -P /tmp "$PLEXURL " && \
9+ gdebi -n /tmp/plexmediaserver_* _amd64.deb && \
10+ rm -f /tmp/plexmediaserver_* _amd64.deb && \
1111apt-get clean && \
1212rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1313
1414
1515# Adding Custom files
16- ADD init/ /etc/my_init.d/
17- ADD services/ /etc/service/
18- RUN chmod -v +x /etc/service/*/run
19- RUN chmod -v +x /etc/my_init.d/*.sh
16+ COPY init/ /etc/my_init.d/
17+ COPY services/ /etc/service/
18+ RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
19+
2020# Define /config in the configuration file not using environment variables
2121ADD plexmediaserver /defaults/plexmediaserver
2222
2323# Mappings and ports
2424VOLUME ["/config" , "/transcode" ]
25- EXPOSE 32400
25+ EXPOSE 32400
You can’t perform that action at this time.
0 commit comments