Files
docker-sabnzbd/Dockerfile
T
2017-02-13 12:16:19 +00:00

63 lines
1.5 KiB
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/xenial
MAINTAINER sparklyballs
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV HOME="/config" \
PYTHONIOENCODING=utf-8
# build packages as variable
ARG BUILD_PACKAGES="\
build-essential \
debhelper \
devscripts \
dh-autoreconf \
git \
libtbb-dev"
# install packages
RUN \
echo "deb http://ppa.launchpad.net/jcfp/nobetas/ubuntu xenial main" >> /etc/apt/sources.list.d/sabnzbd.list && \
echo "deb-src http://ppa.launchpad.net/jcfp/nobetas/ubuntu xenial main" >> /etc/apt/sources.list.d/sabnzbd.list && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F && \
apt-get update && \
apt-get install -y \
p7zip-full \
libtbb2 \
sabnzbdplus \
unrar \
unzip && \
# install build packages
apt-get install -y \
$BUILD_PACKAGES && \
# compile par2 multicore
apt-get remove -y \
par2 && \
git clone https://github.com/jcfp/debpkg-par2tbb.git \
/tmp/par2 && \
cd /tmp/par2 && \
uscan --force-download && \
dpkg-buildpackage -S -us -uc -d && \
dpkg-source -x ../par2cmdline-tbb_*.dsc && \
cd /tmp/par2/par2cmdline-tbb-* && \
dpkg-buildpackage -b -us -uc && \
dpkg -i $(readlink -f ../par2-tbb_*.deb) && \
# cleanup
apt-get purge -y --auto-remove \
$BUILD_PACKAGES && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8080 9090
VOLUME /config /downloads /incomplete-downloads