docker-nzbget/Dockerfile
2016-08-19 10:07:23 +01:00

38 lines
637 B
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
MAINTAINER sparklyballs
# package version
# (stable-download or testing-download)
ARG NZBGET_BRANCH="stable-download"
# install packages
RUN \
apk add --no-cache \
curl \
p7zip \
python \
unrar \
wget
# 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/ /
# ports and volumes
VOLUME /config /downloads
EXPOSE 6789