You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-plex/Dockerfile

48 lines
1.3 KiB

FROM lsiobase/xenial
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="stian larsen,sparklyballs"
9 years ago
# 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" \
PLEX_MEDIA_SERVER_USER=abc
9 years ago
RUN \
echo "**** install packages ****" && \
9 years ago
apt-get update && \
apt-get install -y \
avahi-daemon \
dbus \
unrar \
9 years ago
wget && \
echo "**** install plex ****" && \
9 years ago
curl -o \
/tmp/plexmediaserver.deb -L \
"${PLEX_INSTALL}" && \
9 years ago
dpkg -i /tmp/plexmediaserver.deb && \
echo "**** change abc home folder to fix plex hanging at runtime with usermod ****" && \
usermod -d /app abc && \
echo "**** cleanup ****" && \
8 years ago
apt-get clean && \
rm -rf \
/etc/default/plexmediaserver \
8 years ago
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
9 years ago
# add local files
COPY root/ /
# ports and volumes
EXPOSE 32400 32400/udp 32469 32469/udp 5353/udp 1900/udp
8 years ago
VOLUME /config /transcode