-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
53 lines (46 loc) · 1.53 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
FROM python:2.7-alpine
MAINTAINER Sami Haahtinen <[email protected]>
ENV SICKGEAR_VERSION 0.12.22
# Download gosu and SickGear.
RUN apk add --update \
ca-certificates \
curl \
gcc \
gnupg \
libxml2 \
libxml2-dev \
libxslt \
libxslt-dev \
musl-dev \
tzdata \
&& \
gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && \
ARCH=`uname -m`; if [ $ARCH == "x86_64" ]; then export ARCH="amd64"; else export ARCH="i386"; fi && \
curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.6/gosu-$ARCH" && \
curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.6/gosu-$ARCH.asc" && \
gpg --verify /usr/local/bin/gosu.asc && \
rm /usr/local/bin/gosu.asc && \
chmod +x /usr/local/bin/gosu && \
mkdir /opt && \
curl -SL "https://github.com/SickGear/SickGear/archive/release_${SICKGEAR_VERSION}.tar.gz" | \
tar xz -C /opt && \
mv /opt/SickGear-release_${SICKGEAR_VERSION} /opt/SickGear && \
pip install --no-cache-dir lxml && \
pip install --no-cache-dir -r /opt/SickGear/requirements.txt && \
apk del \
ca-certificates \
curl \
gcc \
gnupg \
libxml2-dev \
libxslt-dev \
musl-dev \
&& \
rm -rf /var/cache/apk/*
ENV APP_DATA="/data" PATH=/opt/SickGear:$PATH
EXPOSE 8081
VOLUME /data /tv /incoming
COPY template /template
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["SickBeard.py"]