forked from izznogooood/unraid-plexconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 908 Bytes
/
Dockerfile
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
FROM phusion/baseimage:0.9.17
# Set correct environment variables
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# Use baseimage-docker's init system
CMD ["/sbin/my_init"]
# Configure user nobody to match unRAID's settings
RUN \
usermod -u 99 nobody && \
usermod -g 100 nobody && \
usermod -d /home nobody && \
chown -R nobody:users /home
# Disable SSH
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
# Refresh APT & Install Dependencies
RUN apt-get update -q
RUN apt-get install -qy python python-dev python-imaging wget unzip git
# add volume for persistant config
VOLUME /mnt/user/appdata/plexconnect
# Add PlexConnect to runit
RUN mkdir /etc/service/plexconnect
ADD plexconnect.sh /etc/service/plexconnect/run
RUN chmod +x /etc/service/plexconnect/run
# Tell docker which ports are in use
EXPOSE 53 80 443