-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
67 lines (57 loc) · 1.52 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
FROM lsiobase/alpine:edge
# 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 ****" && \
echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk add --no-cache \
curl \
p7zip \
python2 \
unrar \
git \
ffmpeg \
par2cmdline@testing \
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/*
# add local files
COPY root/ /
# install nzbToMedia
RUN \
mkdir /scripts
RUN \
git clone https://github.com/clinton-hall/nzbToMedia.git /scripts
RUN \
chmod 777 -R /scripts
RUN \
ln -sf /usr/bin/python2.7 /usr/bin/python2
# ports and volumes
VOLUME /config /downloads
EXPOSE 6789