Skip to content

Commit 2120ec0

Browse files
committed
Merge pull request #29 from sparklyballs/master
submit lonix pr via fork
2 parents dc82242 + a781ff9 commit 2120ec0

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ MAINTAINER Stian Larsen <lonixx@gmail.com>
33

44
# Install Plex
55
RUN 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) && \
77
apt-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 && \
1111
apt-get clean && \
1212
rm -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
2121
ADD plexmediaserver /defaults/plexmediaserver
2222

2323
#Mappings and ports
2424
VOLUME ["/config", "/transcode"]
25-
EXPOSE 32400
25+
EXPOSE 32400

0 commit comments

Comments
 (0)