forked from fastolfe/docker-plex
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (24 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
39 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM tianon/debian:jessie
MAINTAINER Jonathan Dray <jonathan.dray+docker@gmail.com>
# Debian update package information
ENV DEBIAN_FRONTEND noninteractive
RUN sed -i 's/ftp.us/ftp.fr/g' /etc/apt/sources.list
RUN apt-get -y update
# System locales configuration
RUN apt-get install -y --no-install-recommends locales
RUN echo "fr_FR.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen
ENV LANG fr_FR.UTF-8
# Install requirements
RUN apt-get install -y curl
# Add plex repository information and update apt cache
RUN echo "deb http://shell.ninthgate.se/packages/debian wheezy main" > /etc/apt/sources.list.d/plexmediaserver.list
RUN curl http://shell.ninthgate.se/packages/shell-ninthgate-se-keyring.key | apt-key add -
RUN apt-get -y update
# Install plex media server
ENV PLEX_HOME /usr/local/share/plex
RUN apt-get install -y plexmediaserver
# Create configuration directory
RUN mkdir -p $PLEX_HOME
ADD resources/usr/local/bin/pms.sh /usr/local/bin/pms.sh
# Command to launch when container is started
ENTRYPOINT ["/usr/local/bin/pms.sh"]