FROM lsiobase/ubuntu:bionic # set version label ARG BUILD_DATE ARG VERSION ARG SABNZBD_VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL maintainer="thelamer" # environment settings ARG DEBIAN_FRONTEND="noninteractive" ENV HOME="/config" \ PYTHONIOENCODING=utf-8 RUN \ echo "***** install gnupg ****" && \ apt-get update && \ apt-get install -y \ gnupg && \ echo "***** add sabnzbd repositories ****" && \ apt-key adv --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F && \ echo "deb http://ppa.launchpad.net/jcfp/private/ubuntu bionic main" >> /etc/apt/sources.list.d/sabnzbd.list && \ echo "deb-src http://ppa.launchpad.net/jcfp/private/ubuntu bionic main" >> /etc/apt/sources.list.d/sabnzbd.list && \ echo "deb http://ppa.launchpad.net/jcfp/sab-addons/ubuntu bionic main" >> /etc/apt/sources.list.d/sabnzbd.list && \ echo "deb-src http://ppa.launchpad.net/jcfp/sab-addons/ubuntu bionic main" >> /etc/apt/sources.list.d/sabnzbd.list && \ echo "**** install packages ****" && \ if [ -z ${SABNZBD_VERSION+x} ]; then \ SABNZBD="sabnzbdplus"; \ else \ SABNZBD_CLEAN=$(echo "${SABNZBD_VERSION}"| sed 's/..$//') && \ SABNZBD="sabnzbdplus=${SABNZBD_CLEAN}"; \ fi && \ apt-get update && \ apt-get install -y \ p7zip-full \ par2-tbb \ python3 \ python3-pip \ ${SABNZBD} \ unrar \ unzip && \ pip3 install --no-cache-dir \ apprise \ chardet \ pynzb \ requests \ sabyenc && \ echo "**** cleanup ****" && \ ln -s \ /usr/bin/python3 \ /usr/bin/python && \ apt-get purge --auto-remove -y \ python3-pip && \ 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