-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (52 loc) · 1.92 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM alpine:3.13
ARG SABVER=3.3.1
ARG PAR2=0.8.1
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
RUN apk add --no-cache ca-certificates openssl unzip unrar p7zip python3 python3-dev py3-pip \
py3-cheetah py3-cryptography py3-feedparser py3-configobj py3-chardet py3-wheel \
build-base libgomp libffi-dev openssl-dev automake autoconf bash tini shadow supervisor \
&& pip3 --no-cache-dir install cherrypy portend notify2 sabyenc3 cheroot \
&& wget -q -O- "https://github.com/sabnzbd/sabnzbd/releases/download/${SABVER}/SABnzbd-${SABVER}-src.tar.gz" | tar -zx \
&& mv "SABnzbd-${SABVER}/" /sabnzbd \
&& /usr/bin/python3 /sabnzbd/tools/make_mo.py \
&& wget -q -O- "https://github.com/Parchive/par2cmdline/releases/download/v${PAR2}/par2cmdline-${PAR2}.tar.gz" | tar -zx \
&& cd "par2cmdline-${PAR2}" \
&& aclocal \
&& automake --add-missing \
&& autoconf \
&& ./configure \
&& make -j2 \
&& make install \
&& cd .. \
&& rm -rf "par2cmdline-${PAR2}" \
&& echo "*** cleanup ***" \
&& apk del build-base automake autoconf python3-dev \
&& rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/lib/apk/* "$HOME/.cache" \
&& useradd -u 911 -U -d /sabnzbd -s /bin/false abc
COPY configs /configs
COPY scripts /scripts
COPY VERSION /
ENV SABNZBD_HOME="/config" \
SABNZBD_BIND_ADDRESS="0.0.0.0" \
SABNZBD_PORT="8080" \
SABNZBD_HTTPS_PORT="" \
SABNZBD_OPTS="-l 0 -b 0" \
SAB_DOWNLOAD_DIR="/data/completed" \
SAB_INCOMPLETE_DIR="/data/incomplete" \
SAB_WATCH_DIR="/data/watched" \
SAB_NZB_BACKUP="" \
PUID="" \
PGID="" \
UMASK="" \
SSL="" \
GENCERT="" \
Country="US" \
State="Reach" \
Locality="Sector9" \
Company="MediaServices" \
Department="Mediaservices" \
HostName="MediaBox.local"
VOLUME /config /data
EXPOSE 8080
ENTRYPOINT [ "/sbin/tini", "--" ]
CMD [ "/bin/bash", "/scripts/init.sh" ]