docker-nzbget/Dockerfile

53 lines
1.1 KiB
Docker
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/alpine:3.6
MAINTAINER sparklyballs
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# package version
# (stable-download or testing-download)
ARG NZBGET_BRANCH="stable-download"
# install packages
RUN \
apk add --no-cache \
curl \
p7zip \
python2 \
unrar \
wget && \
# 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 && \
# 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 && \
# cleanup
rm -rf \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /downloads
EXPOSE 6789