|
@@ -0,0 +1,35 @@
|
|
|
+# Builds a modified version of sabnzbd with nzbToMedia.
|
|
|
+# Needs the configuration file mounted to /usr/local/scripts/autoProcessMedia.cfg
|
|
|
+FROM lsiobase/ffmpeg:arm64v8-bin as binstage
|
|
|
+FROM linuxserver/sabnzbd:latest
|
|
|
+
|
|
|
+# Add files from binstage
|
|
|
+COPY --from=binstage / /
|
|
|
+
|
|
|
+# get the latest version from https://github.com/clinton-hall/nzbToMedia/tags
|
|
|
+ENV GITTAG=12.1.08
|
|
|
+
|
|
|
+RUN apt-get update && apt-get install -y \
|
|
|
+ git \
|
|
|
+ libexpat1 \
|
|
|
+ libfontconfig1 \
|
|
|
+ libglib2.0-0 \
|
|
|
+ libgomp1 \
|
|
|
+ libharfbuzz0b \
|
|
|
+ libv4l-0 \
|
|
|
+ libx11-6 \
|
|
|
+ libxcb1 \
|
|
|
+ libxext6 \
|
|
|
+ libxml2 && \
|
|
|
+ echo "**** clean up ****" && \
|
|
|
+ rm -rf /var/lib/apt/lists/* /var/tmp/*
|
|
|
+
|
|
|
+WORKDIR /usr/local
|
|
|
+RUN curl -o /usr/local/src/nzbToMedia.tar.gz https://codeload.github.com/clinton-hall/nzbToMedia/tar.gz/refs/tags/${GITTAG} \
|
|
|
+ && tar xvzf /usr/local/src/nzbToMedia.tar.gz \
|
|
|
+ && mv nzbToMedia-${GITTAG} scripts \
|
|
|
+ && cp scripts/autoProcessMedia.cfg.spec scripts/autoProcessMedia.cfg \
|
|
|
+ && chown -R abc:abc scripts \
|
|
|
+ && rm /usr/local/src/nzbToMedia.tar.gz
|
|
|
+
|
|
|
+WORKDIR /
|