-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (40 loc) · 926 Bytes
/
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
FROM lsiobase/alpine
LABEL maintainer halfwalker
# package version
# (stable-download or testing-download)
ARG NZBGET_BRANCH="testing-download"
# install packages
RUN \
apk add --no-cache \
curl \
p7zip \
python \
unrar \
wget
# Install rar 5.40
# Missing libraries in lsiobase/alpline dangit
# ADD rarlinux-x64-5.4.0.tar.gz /tmp
# RUN \
# mv /tmp/rar/rar /tmp/rar/unrar /usr/bin && \
# mv /tmp/rar/default.sfx /usr/lib && \
# mv /tmp/rar/rarfiles.lst /etc
# install nzbget
RUN \
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 && \
# cleanup
rm -rf \
/tmp/*
# add local files
COPY root/ /
# Copy scripts
COPY scripts/ /app/scripts/
# ports and volumes
VOLUME /config /downloads
EXPOSE 6789