Update Dockerfile

pull/1/head
RandomNinjaAtk 5 years ago committed by GitHub
parent d313045996
commit 32d102ca13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,9 @@ FROM jrottenberg/ffmpeg:snapshot-vaapi as ffmpeg
FROM linuxserver/sabnzbd FROM linuxserver/sabnzbd
LABEL maintainer="RandomNinjaAtk" LABEL maintainer="RandomNinjaAtk"
ENV SMA_PATH /usr/local/sma
ENV SMA_UPDATE false
# Add files from ffmpeg # Add files from ffmpeg
COPY --from=ffmpeg /usr/local/ /usr/local/ COPY --from=ffmpeg /usr/local/ /usr/local/
@ -35,6 +38,33 @@ RUN \
chmod g+x /usr/local/bin/ffmpeg && \ chmod g+x /usr/local/bin/ffmpeg && \
chmod g+x /usr/local/bin/ffprobe chmod g+x /usr/local/bin/ffprobe
ENV SMA_PATH /usr/local/sma
ENV SMA_UPDATE false
# get python3 and git, and install python libraries
RUN \
apt-get update && \
apt-get install -y \
git \
wget \
python3 \
python3-pip && \
# make directory
mkdir ${SMA_PATH} && \
# download repo
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \
# create logging file
touch /var/log/sma.log && \
chgrp users /var/log/sma.log && \
chmod g+w /var/log/sma.log && \
# install pip, venv, and set up a virtual self contained python environment
python3 -m pip install --user --upgrade pip && \
python3 -m pip install --user virtualenv && \
python3 -m virtualenv ${SMA_PATH}/venv && \
cd ${SMA_PATH} && \
${SMA_PATH}/venv/bin/pip install -r ${SMA_PATH}/setup/requirements.txt && \
RUN \ RUN \
# setup cron # setup cron
service cron start && \ service cron start && \

Loading…
Cancel
Save