forked from ebright/maraschino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
60 lines (49 loc) · 1.64 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM phusion/baseimage:0.9.16
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="taius.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="ronnieblaze"
# Set correct environment variables
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
# Set the locale, to support files that have non-ASCII characters
RUN locale-gen en_US.UTF-8
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"]
RUN mkdir -p /etc/my_init.d
# Disable SSH
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
# Speed up APT
RUN \
echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup && \
echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache
# Update and Install Packages
RUN \
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe multiverse" && \
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse" && \
apt-get update -q && apt-get install -qy \
python \
unrar \
unzip \
wget \
&& rm -rf /var/lib/apt/lists/*
# Install Maraschino for Plex and clean up
RUN \
mkdir /opt/maraschino && \
wget -P /tmp/ https://github.com/ebright/maraschino/archive/master.zip && \
unzip /tmp/master.zip -d /opt/maraschino && \
mv /opt/maraschino/maraschino-master/* /opt/maraschino && \
rm -rf /opt/maraschino/maraschino-master && \
rm /tmp/master.zip
#set config directory
VOLUME /config /data
#expose ports
EXPOSE 7000
# Add maraschino to runit
RUN mkdir /etc/service/maraschino
COPY maraschino.sh /etc/service/maraschino/run
RUN chmod +x /etc/service/maraschino/run