mirror of
https://github.com/linuxserver/docker-plex.git
synced 2026-01-17 09:54:25 +08:00
38 lines
1.1 KiB
Docker
38 lines
1.1 KiB
Docker
FROM phusion/baseimage:0.9.16
|
|
MAINTAINER Stian Larsen <lonixx@gmail.com>
|
|
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV HOME /root
|
|
|
|
|
|
# Use baseimage-docker's init system
|
|
CMD ["/sbin/my_init"]
|
|
|
|
|
|
# Install Plex
|
|
RUN apt-get -q update && \
|
|
VERSION=$(curl -s https://fanart.tv/webservice/plex/plex.php | grep "version" | cut -d '"' -f 4) && \
|
|
apt-get install -qy dbus gdebi-core avahi-daemon wget && \
|
|
wget -P /tmp "http://downloads.plexapp.com/plex-media-server/$VERSION/plexmediaserver_${VERSION}_amd64.deb" && \
|
|
gdebi -n /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
|
rm -f /tmp/plexmediaserver_${VERSION}_amd64.deb && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
#Mappings and ports
|
|
VOLUME /config
|
|
EXPOSE 32400
|
|
|
|
#Adduser
|
|
RUN useradd -u 911 -U -s /bin/false abc
|
|
RUN usermod -G users abc
|
|
|
|
|
|
#Adding Custom files
|
|
ADD init/ /etc/my_init.d/
|
|
ADD services/ /etc/service/
|
|
RUN chmod -v +x /etc/service/*/run
|
|
RUN chmod -v +x /etc/my_init.d/*.sh
|
|
# Define /config in the configuration file not using environment variables
|
|
ADD plexmediaserver /etc/default/plexmediaserver
|