docker-nzbget/Dockerfile
2016-07-13 09:05:31 +01:00

42 lines
773 B
Docker
Raw 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
MAINTAINER sparklyballs
# package version (stable-download or testing-download)
ARG NZBGET_BRANCH="stable-download"
# environment
ARG NZBG_ROOT="/tmp"
ARG NZBG_WWW="http://nzbget.net/info/nzbget-version-linux.json"
ENV NZBG_INST="/app"
# install packages
RUN \
apk add --no-cache \
curl \
p7zip \
python \
unrar \
wget
# install nzbget
RUN \
curl -o \
"${NZBG_ROOT}/json" -L \
"${NZBG_WWW}" && \
NZBGET_VERSION=$(grep "${NZBGET_BRANCH}" "${NZBG_ROOT}/json" | cut -d '"' -f 4) && \
curl -o \
"${NZBG_ROOT}/nzbget.run" -L \
"${NZBGET_VERSION}" && \
sh "${NZBG_ROOT}/nzbget.run" --destdir "${NZBG_INST}" && \
# cleanup
rm -rfv \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /downloads
EXPOSE 6789