-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (26 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Version: 0.0.4
FROM ubuntu:20.04
# Docker image with SABnzbd3 (git version) running on Python3.9
ENV DEBIAN_FRONTEND noninteractive
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
MAINTAINER Sander "[email protected]"
RUN apt update -y && apt-get upgrade -y && apt install python3-pip git rar par2 unzip p7zip software-properties-common libffi-dev libssl-dev -y
# python3.9:
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt install python3.9 python3.9-distutils python3.9-dev -y
#RUN rm /usr/bin/python3 && ln -s /usr/bin/python3.9 /usr/bin/python3
# SABnzbd from git
RUN cd / && git clone https://github.com/sabnzbd/sabnzbd.git
RUN python3.9 -m pip install --verbose -r sabnzbd/requirements.txt -U
RUN python3.9 sabnzbd/tools/make_mo.py
# SABnzbd from PPA
#RUN add-apt-repository ppa:jcfp/ppa
#RUN apt-get update -y && apt-get upgrade -y
#RUN apt install sabnzbdplus -y
# monkey patch feedparser
#RUN for f in `find / -name 'feedparser.py' | grep dist` ; do sed -i 's/base64.decodestring/base64.decodebytes/g' $f ; done
CMD env LANG=en_US.UTF-8 python3.9 /sabnzbd/SABnzbd.py -b0 --server 0.0.0.0:8080
RUN echo 'Hi, I am in your container'
# ports and volumes
EXPOSE 8080 9090
VOLUME /config /downloads /incomplete-downloads