Files
docker-sabnzbd/Dockerfile
T
2016-06-30 11:15:59 +01:00

25 lines
637 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 sparklyballs/base-python-alpine
MAINTAINER sparklyballs
# add local files
COPY root/ /
# install sabnzbd
RUN \
mkdir -p /app/sabnzbd && \
LATEST_RELEASE=$(curl -sX GET "https://api.github.com/repos/sabnzbd/sabnzbd/releases/latest" | \
awk '/tag_name/{print $4;exit}' FS='[""]') && \
curl -o \
/tmp/sabnzbd.tar.gz -L \
https://github.com/sabnzbd/sabnzbd/releases/download/"${LATEST_RELEASE}"/SABnzbd-"${LATEST_RELEASE}"-src.tar.gz && \
tar xf /tmp/sabnzbd.tar.gz -C \
/app/sabnzbd --strip-components=1 && \
# cleanup
rm -f /tmp/*
# ports and volumes
VOLUME /config /downloads /incomplete-downloads
EXPOSE 8080 9090