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

38 lines
749 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

FROM lsiobase/xenial
MAINTAINER Stian Larsen, sparklyballs
# package version
ENV PLEX_URL="https://plex.tv/downloads"
ARG PLEX_WWW="${PLEX_URL}/latest/1?channel=8&build=linux-ubuntu-x86_64&distro=ubuntu"
# global environment settings
ENV DEBIAN_FRONTEND="noninteractive"
ENV HOME="/config"
# install packages
RUN \
apt-get update && \
apt-get install -y \
avahi-daemon \
dbus \
wget && \
# cleanup
apt-get clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
# install plex
RUN \
curl -o \
/tmp/plexmediaserver.deb -L \
"${PLEX_WWW}" && \
dpkg -i /tmp/plexmediaserver.deb && \
rm -f /tmp/*
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /transcode
EXPOSE 32400 32400/udp 32469 32469/udp 5353/udp 1900/udp