Files
docker-sabnzbd/Dockerfile
T

77 lines
2.2 KiB
Docker
Raw Normal View History

FROM lsiobase/ubuntu:bionic
2015-08-17 13:13:48 +01:00
2017-07-12 09:07:08 +01:00
# set version label
ARG BUILD_DATE
ARG VERSION
ARG SABNZBD_VERSION
2017-07-12 09:07:08 +01:00
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
2017-07-12 09:07:08 +01:00
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
2017-02-08 14:34:00 +00:00
ENV HOME="/config" \
PYTHONIOENCODING=utf-8
2016-06-30 11:15:59 +01:00
RUN \
echo "***** install gnupg ****" && \
apt-get update && \
apt-get install -y \
gnupg && \
2017-12-13 11:03:06 +00:00
echo "***** add sabnzbd repositories ****" && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F && \
2020-05-08 14:45:31 -04:00
echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu bionic main" >> /etc/apt/sources.list.d/sabnzbd.list && \
echo "deb-src http://ppa.launchpad.net/jcfp/ppa/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 && \
2017-12-13 11:03:06 +00:00
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
2020-08-17 13:35:38 -04:00
jq \
2020-08-17 14:30:05 -04:00
libffi-dev \
libssl-dev \
p7zip-full \
2017-04-10 21:50:05 +01:00
par2-tbb \
python3 \
2020-08-18 16:28:43 -04:00
python3-cryptography \
python3-distutils \
python3-pip \
2020-08-18 10:49:13 -04:00
unrar && \
2020-08-17 13:35:38 -04:00
if [ -z ${SABNZBD_VERSION+x} ]; then \
SABNZBD_VERSION=$(curl -s https://api.github.com/repos/sabnzbd/sabnzbd/releases \
| jq -r 'first(.[]) | .tag_name'); \
fi && \
mkdir -p /app/sabnzbd && \
curl -o \
/tmp/sabnzbd.tar.gz -L \
"https://github.com/sabnzbd/sabnzbd/releases/download/${SABNZBD_VERSION}/SABnzbd-${SABNZBD_VERSION}-src.tar.gz" && \
tar xf \
/tmp/sabnzbd.tar.gz -C \
/app/sabnzbd --strip-components=1 && \
cd /app/sabnzbd && \
pip3 install -U pip && \
2020-08-18 10:49:13 -04:00
pip install -U --no-cache-dir \
apprise \
pynzb \
requests && \
2020-08-17 13:35:38 -04:00
pip install -U --no-cache-dir -r requirements.txt && \
2017-12-13 11:03:06 +00:00
echo "**** cleanup ****" && \
ln -s \
/usr/bin/python3 \
/usr/bin/python && \
2020-08-17 14:30:05 -04:00
apt-get purge --auto-remove -y \
libffi-dev \
2020-08-17 14:43:10 -04:00
libssl-dev \
python3-pip && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
2016-08-07 00:51:20 +01:00
# add local files
2016-08-07 00:51:20 +01:00
COPY root/ /
2015-08-17 13:13:48 +01:00
# ports and volumes
2015-08-17 13:13:48 +01:00
EXPOSE 8080 9090
VOLUME /config