|
|
|
@ -1,6 +1,10 @@
|
|
|
|
|
FROM jrottenberg/ffmpeg:snapshot-ubuntu as ffmpeg
|
|
|
|
|
FROM linuxserver/sabnzbd
|
|
|
|
|
LABEL maintainer="RandomNinjaAtk"
|
|
|
|
|
|
|
|
|
|
# Add files from ffmpeg
|
|
|
|
|
COPY --from=ffmpeg /usr/local/ /usr/local/
|
|
|
|
|
|
|
|
|
|
ENV VERSION="1.0.0"
|
|
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
@ -10,13 +14,27 @@ RUN \
|
|
|
|
|
mkvtoolnix \
|
|
|
|
|
mp3val \
|
|
|
|
|
flac \
|
|
|
|
|
ffmpeg \
|
|
|
|
|
opus-tools \
|
|
|
|
|
jq \
|
|
|
|
|
cron && \
|
|
|
|
|
apt-get purge --auto-remove -y && \
|
|
|
|
|
apt-get clean
|
|
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
|
# ffmpeg
|
|
|
|
|
apt-get update -qq && \
|
|
|
|
|
apt-get install -qq -y \
|
|
|
|
|
libva-drm2 \
|
|
|
|
|
libva2 \
|
|
|
|
|
i965-va-driver \
|
|
|
|
|
libgomp1 && \
|
|
|
|
|
apt-get purge --auto-remove -y && \
|
|
|
|
|
apt-get clean && \
|
|
|
|
|
chgrp users /usr/local/bin/ffmpeg && \
|
|
|
|
|
chgrp users /usr/local/bin/ffprobe && \
|
|
|
|
|
chmod g+x /usr/local/bin/ffmpeg && \
|
|
|
|
|
chmod g+x /usr/local/bin/ffprobe
|
|
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
|
# setup cron
|
|
|
|
|
service cron start && \
|
|
|
|
@ -32,4 +50,4 @@ COPY root/ /
|
|
|
|
|
|
|
|
|
|
# ports and volumes
|
|
|
|
|
EXPOSE 8080 9090
|
|
|
|
|
VOLUME /config /downloads
|
|
|
|
|
VOLUME /config /storage
|
|
|
|
|