Created
September 14, 2016 09:03
-
-
Save bgulla/aa007db7b0aec6c845586a0a2fb5b919 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM lsiobase/xenial | |
| MAINTAINER bgulla | |
| # package version | |
| ENV PLEX_INSTALL="https://downloads.plex.tv/plex-media-server/1.2.0.2765-2d034d4/plexmediaserver_1.2.0.2765-2d034d4_amd64.deb" | |
| # global environment settings | |
| ENV DEBIAN_FRONTEND="noninteractive" | |
| ENV HOME="/config" | |
| ENV PLEX_DOWNLOAD="https://downloads.plex.tv/plex-media-server" | |
| # install packages | |
| RUN \ | |
| apt-get update && \ | |
| apt-get install -y \ | |
| avahi-daemon \ | |
| dbus \ | |
| wget && \ | |
| # install plex | |
| curl -o \ | |
| /tmp/plexmediaserver.deb -L \ | |
| "${PLEX_INSTALL}" && \ | |
| dpkg -i /tmp/plexmediaserver.deb && \ | |
| # cleanup | |
| apt-get clean && \ | |
| rm -rf \ | |
| /etc/default/plexmediaserver \ | |
| /tmp/* \ | |
| /var/lib/apt/lists/* \ | |
| /var/tmp/* | |
| # add local files | |
| COPY root/ / | |
| # ports and volumes | |
| EXPOSE 32400 32400/udp 32469 32469/udp 5353/udp 1900/udp | |
| VOLUME /config /transcode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment