Update Dockerfile

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

@ -88,8 +88,7 @@ ENV SUBTITLE_ATTACHMENT_CODEC=""
COPY --from=ffmpeg /usr/local/ /usr/local/ COPY --from=ffmpeg /usr/local/ /usr/local/
RUN \ RUN \
############## install dependencies ############## echo "************ 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 \
@ -105,38 +104,34 @@ RUN \
cron && \ cron && \
apt-get purge --auto-remove -y && \ apt-get purge --auto-remove -y && \
apt-get clean && \ apt-get clean && \
############## install SMA ############## echo "************ setup SMA ************" && \
echo "**** setup SMA ****" && \ echo "************ setup directory ************" && \
# make directory
mkdir -p ${SMA_PATH} && \ mkdir -p ${SMA_PATH} && \
# download repo echo ""************ download repo ************" && \
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \ git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \
mkdir -p ${SMA_PATH}/config && \ mkdir -p ${SMA_PATH}/config && \
# create logging file echo "************ create logging file ************" && \
mkdir -p ${SMA_PATH}/config && \ mkdir -p ${SMA_PATH}/config && \
touch ${SMA_PATH}/config/sma.log && \ touch ${SMA_PATH}/config/sma.log && \
chgrp users ${SMA_PATH}/config/sma.log && \ chgrp users ${SMA_PATH}/config/sma.log && \
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 echo "************ install pip dependencies ************" && \
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 ############## echo "************ setup sabnzbd-scripts ************" && \
echo "**** setup sabnzbd-scripts ****" && \ echo "************ setup directory ************" && \
# make directory
mkdir -p ${SABSCRIPTS_PATH} && \ mkdir -p ${SABSCRIPTS_PATH} && \
# download repo echo "************ download repo ************" && \
git clone https://github.com/RandomNinjaAtk/sabnzbd-scripts.git ${SABSCRIPTS_PATH} && \ git clone https://github.com/RandomNinjaAtk/sabnzbd-scripts.git ${SABSCRIPTS_PATH} && \
############## setup cron ############## echo "************ setup cron ************" && \
echo "**** setup cron ****" && \
service cron start && \ service cron start && \
echo "* * * * * root bash /etc/cont-init.d/33-script-setup.bash" >> "/etc/crontab" echo "* * * * * root bash /etc/cont-init.d/33-script-setup.bash" >> "/etc/crontab" && \
############## setup ffmpeg ############## echo "************ 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 && \
chmod g+x /usr/local/bin/ffprobe && \ chmod g+x /usr/local/bin/ffprobe && \
echo "**** install runtime ****" && \ echo "************ install runtime ************" && \
apt-get update && \ apt-get update && \
apt-get install -y \ apt-get install -y \
i965-va-driver \ i965-va-driver \
@ -152,7 +147,7 @@ RUN \
libxml2 \ libxml2 \
libva-drm2 \ libva-drm2 \
libva2 && \ libva2 && \
echo "**** clean up ****" && \ echo "************ clean up ************" && \
rm -rf \ rm -rf \
/var/lib/apt/lists/* \ /var/lib/apt/lists/* \
/var/tmp/* /var/tmp/*

Loading…
Cancel
Save