-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·71 lines (64 loc) · 1.75 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
61
62
63
64
65
66
67
68
69
70
71
FROM lsiobase/alpine:3.7
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# package version
# (stable-download or testing-download)
ARG NZBGET_BRANCH="stable-download"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
p7zip \
python2 \
unrar \
wget && \
echo "**** install nzbget ****" && \
mkdir -p \
/app/nzbget && \
curl -o \
/tmp/json -L \
http://nzbget.net/info/nzbget-version-linux.json && \
NZBGET_VERSION=$(grep "${NZBGET_BRANCH}" /tmp/json | cut -d '"' -f 4) && \
curl -o \
/tmp/nzbget.run -L \
"${NZBGET_VERSION}" && \
sh /tmp/nzbget.run --destdir /app/nzbget && \
echo "**** configure nzbget ****" && \
cp /app/nzbget/nzbget.conf /defaults/nzbget.conf && \
sed -i \
-e "s#\(MainDir=\).*#\1/downloads#g" \
-e "s#\(ScriptDir=\).*#\1$\{MainDir\}/scripts#g" \
-e "s#\(WebDir=\).*#\1$\{AppDir\}/webui#g" \
-e "s#\(ConfigTemplate=\).*#\1$\{AppDir\}/webui/nzbget.conf.template#g" \
/defaults/nzbget.conf && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
ffmpeg \
git && \
curl https://bootstrap.pypa.io/ez_setup.py -o - | python && \
easy_install pip && \
pip install requests \
requests[security] \
requests-cache \
babelfish \
'guessit<2' \
'subliminal<2' \
'stevedore==1.19.1' \
python-dateutil \
qtfaststart
RUN \
echo "**** install mp4_automator ****" && \
git clone git://github.com/mdhiggins/sickbeard_mp4_automator.git /mp4automator && \
chown -R abc:abc /mp4automator
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /downloads
EXPOSE 6789