Update Dockerfile

pull/9/head
RandomNinjaAtk 5 years ago committed by GitHub
parent ad6ba61343
commit e606d60f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,8 @@ ENV SUBTITLE_ATTACHMENT_CODEC=""
COPY --from=ffmpeg /usr/local/ /usr/local/ COPY --from=ffmpeg /usr/local/ /usr/local/
RUN \ RUN \
# install dependancies ############## install dependencies ##############
echo "**** install dependencies ****" && \
apt-get update -qq && \ apt-get update -qq && \
apt-get install -qq -y \ apt-get install -qq -y \
mkvtoolnix \ mkvtoolnix \
@ -103,10 +104,9 @@ RUN \
python3-pip \ python3-pip \
cron && \ cron && \
apt-get purge --auto-remove -y && \ apt-get purge --auto-remove -y && \
apt-get clean apt-get clean && \
############## install SMA ##############
# get install SMA echo "**** setup SMA ****" && \
RUN \
# make directory # make directory
mkdir -p ${SMA_PATH} && \ mkdir -p ${SMA_PATH} && \
# download repo # download repo
@ -119,10 +119,19 @@ RUN \
chmod g+w ${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 # install pip, venv, and set up a virtual self contained python environment
python3 -m pip install --user --upgrade pip && \ python3 -m pip install --user --upgrade pip && \
pip3 install -r ${SMA_PATH}/setup/requirements.txt pip3 install -r ${SMA_PATH}/setup/requirements.txt && \
############## setup sabnzbd-scripts ##############
RUN \ echo "**** setup sabnzbd-scripts ****" && \
# ffmpeg # 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/ffmpeg && \
chgrp users /usr/local/bin/ffprobe && \ chgrp users /usr/local/bin/ffprobe && \
chmod g+x /usr/local/bin/ffmpeg && \ chmod g+x /usr/local/bin/ffmpeg && \
@ -147,17 +156,6 @@ RUN \
rm -rf \ rm -rf \
/var/lib/apt/lists/* \ /var/lib/apt/lists/* \
/var/tmp/* /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 / WORKDIR /

Loading…
Cancel
Save