initial commit

This commit is contained in:
dave 2015-09-26 18:19:26 -07:00
commit 7a2fa116e4
2 changed files with 17 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM ubuntu:trusty
RUN apt-get update ;\
apt-get install -y wget ;\
wget -O /tmp/plex.deb https://downloads.plex.tv/plex-media-server/0.9.12.11.1406-8403350/plexmediaserver_0.9.12.11.1406-8403350_amd64.deb ;\
dpkg -i /tmp/plex.deb ;\
rm -rf /tmp/plex.deb /var/lib/apt/lists/*
ADD start /start
VOLUME /var/lib/plexmediaserver/

6
start Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# Cleanly kill plex when container is stopped
trap 'kill $(jobs -p)' EXIT
su -c "/usr/sbin/start_pms" plex