Files
docker-sabnzbd/Dockerfile
T

28 lines
735 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.python
MAINTAINER sparklyballs
# 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 && \
https://github.com/sabnzbd/sabnzbd/releases/download/1.1.0RC4/SABnzbd-1.1.0RC4-src.tar.gz && \
tar xf \
/tmp/sabnzbd.tar.gz -C \
/app/sabnzbd --strip-components=1 && \
# cleanup
rm -f \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /downloads /incomplete-downloads
EXPOSE 8080 9090