From d94d5b55c134189af9f33630ec74c4dd943137b8 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 18 Mar 2020 08:19:28 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9218a4e..fae92b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,19 +26,25 @@ RUN \ # get python3 and git, and install python libraries RUN \ - apt-get update && \ - apt-get install -y \ - git \ - wget \ - python3 \ - python3-pip && \ -# make directory - mkdir -p ${SMA_PATH} && \ -# download repo - git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \ -# 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 + apt-get update && \ + apt-get install -y \ + git \ + wget \ + python3 \ + python3-pip && \ + # make directory + mkdir -p ${SMA_PATH} && \ + # download repo + git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \ + mkdir -p ${SMA_PATH}/config && \ + # create logging file + mkdir -p ${SMA_PATH}/config && \ + touch ${SMA_PATH}/config/sma.log && \ + chgrp users ${SMA_PATH}/config/sma.log && \ + 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