docker-plex-wireguard/Dockerfile

46 lines
1.1 KiB
Text
Raw Normal View History

2016-07-01 04:04:51 +01:00
FROM lsiobase/xenial
2016-06-30 22:59:35 +01:00
MAINTAINER Stian Larsen, sparklyballs
2015-05-10 10:50:00 +02:00
2016-06-30 22:59:35 +01:00
# global environment settings
ENV DEBIAN_FRONTEND="noninteractive" \
PLEX_DOWNLOAD="https://downloads.plex.tv/plex-media-server" \
PLEX_INSTALL="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu" \
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" \
PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \
PLEX_MEDIA_SERVER_INFO_DEVICE=docker \
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \
LD_LIBRARY_PATH="/usr/lib/plexmediaserver:$LD_LIBRARY_PATH"
2015-05-10 10:50:00 +02:00
2016-06-30 22:59:35 +01:00
# install packages
RUN \
apt-get update && \
apt-get install -y \
avahi-daemon \
dbus \
wget && \
2016-06-30 22:59:35 +01:00
# install plex
curl -o \
/tmp/plexmediaserver.deb -L \
"${PLEX_INSTALL}" && \
2016-06-30 22:59:35 +01:00
dpkg -i /tmp/plexmediaserver.deb && \
2016-08-22 12:44:21 +01:00
# change abc home folder to fix plex hanging at runtime with usermod
usermod -d /app abc && \
2016-08-22 12:44:21 +01:00
# cleanup
apt-get clean && \
rm -rf \
/etc/default/plexmediaserver \
2016-08-22 12:44:21 +01:00
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
2016-06-30 22:59:35 +01:00
# add local files
COPY root/ /
# ports and volumes
EXPOSE 32400 32400/udp 32469 32469/udp 5353/udp 1900/udp
2016-08-22 12:44:21 +01:00
VOLUME /config /transcode