-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (38 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
47 lines (38 loc) · 1.12 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
40
41
42
43
44
45
46
47
FROM phusion/baseimage:0.9.18
MAINTAINER Petter Helset <petter@helset.eu>
# Use baseimage-docker's init system
CMD ["/sbin/my_init"]
# Install deps
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python \
python-cheetah \
ca-certificates \
wget \
unrar \
unzip \
git \
&& apt-get clean
# Setup SickRage from tag
RUN groupadd -r -g 797 sickrage \
&& useradd -r -u 797 -g 797 -d /opt/sickrage -s /usr/sbin/nologin sickrage \
&& git clone https://github.com/SickRage/SickRage.git /opt/sickrage \
&& git -C /opt/sickrage checkout -b v5.1.2 tags/v5.1.2 \
&& mkdir /config /downloads /tv \
&& chown -R 797:797 /opt/sickrage /config /downloads /tv
# SickRage HTTP
EXPOSE 8081
# SickRage Configuration
VOLUME /config
# Downloads directory
VOLUME /downloads
# TV directory
VOLUME /tv
# Add edge.sh to execute during container startup
RUN mkdir -p /etc/my_init.d
ADD edge.sh /etc/my_init.d/edge.sh
RUN chmod +x /etc/my_init.d/edge.sh
# Add SickRage to runit
RUN mkdir /etc/service/sickrage
ADD sickrage.sh /etc/service/sickrage/run
RUN chmod +x /etc/service/sickrage/run