From e606d60f72f5591e853f71823eb5b2b4dfe386e5 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 1 Apr 2020 06:47:38 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b9ffad..e638f3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -88,7 +88,8 @@ ENV SUBTITLE_ATTACHMENT_CODEC="" COPY --from=ffmpeg /usr/local/ /usr/local/ RUN \ - # install dependancies + ############## install dependencies ############## + echo "**** install dependencies ****" && \ apt-get update -qq && \ apt-get install -qq -y \ mkvtoolnix \ @@ -103,10 +104,9 @@ RUN \ python3-pip \ cron && \ apt-get purge --auto-remove -y && \ - apt-get clean - -# get install SMA -RUN \ + apt-get clean && \ + ############## install SMA ############## + echo "**** setup SMA ****" && \ # make directory mkdir -p ${SMA_PATH} && \ # download repo @@ -119,10 +119,19 @@ RUN \ chmod g+w ${SMA_PATH}/config/sma.log && \ # install pip, venv, and set up a virtual self contained python environment python3 -m pip install --user --upgrade pip && \ - pip3 install -r ${SMA_PATH}/setup/requirements.txt - -RUN \ - # ffmpeg + pip3 install -r ${SMA_PATH}/setup/requirements.txt && \ + ############## setup sabnzbd-scripts ############## + echo "**** setup sabnzbd-scripts ****" && \ + # make directory + mkdir -p ${SABSCRIPTS_PATH} && \ + # download repo + git clone https://github.com/RandomNinjaAtk/sabnzbd-scripts.git ${SABSCRIPTS_PATH} && \ + ############## setup cron ############## + echo "**** setup cron ****" && \ + service cron start && \ + echo "* * * * * root bash /etc/cont-init.d/33-script-setup.bash" >> "/etc/crontab" + ############## setup ffmpeg ############## + echo "**** setup ffmpeg ****" && \ chgrp users /usr/local/bin/ffmpeg && \ chgrp users /usr/local/bin/ffprobe && \ chmod g+x /usr/local/bin/ffmpeg && \ @@ -147,17 +156,6 @@ RUN \ rm -rf \ /var/lib/apt/lists/* \ /var/tmp/* - -RUN \ - # make directory - mkdir -p ${SABSCRIPTS_PATH} && \ - # download repo - git clone https://github.com/RandomNinjaAtk/sabnzbd-scripts.git ${SABSCRIPTS_PATH} - -RUN \ - # setup cron - service cron start && \ - echo "* * * * * root bash /etc/cont-init.d/33-script-setup.bash" >> "/etc/crontab" WORKDIR /