Update Dockerfile

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

@ -10,27 +10,6 @@ ENV UPDATE false
# Add files from ffmpeg
COPY --from=ffmpeg /usr/local/ /usr/local/
RUN \
# ffmpeg
echo "**** install runtime ****" && \
apt-get update && \
apt-get install -y \
i965-va-driver \
libexpat1 \
libgl1-mesa-dri \
libglib2.0-0 \
libgomp1 \
libharfbuzz0b \
libv4l-0 \
libx11-6 \
libxcb1 \
libxext6 \
libxml2 && \
echo "**** clean up ****" && \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/*
RUN \
# install dependancies
apt-get update -qq && \
@ -42,12 +21,7 @@ RUN \
jq \
cron && \
apt-get purge --auto-remove -y && \
apt-get clean && \
chgrp users /usr/local/bin/ffmpeg && \
chgrp users /usr/local/bin/ffprobe && \
chmod g+x /usr/local/bin/ffmpeg && \
chmod g+x /usr/local/bin/ffprobe
apt-get clean
# get python3 and git, and install python libraries
RUN \
@ -73,6 +47,33 @@ RUN \
cd ${SMA_PATH} && \
pip3 install -r ${SMA_PATH}/setup/requirements.txt
RUN \
# ffmpeg
chgrp users /usr/local/bin/ffmpeg && \
chgrp users /usr/local/bin/ffprobe && \
chmod g+x /usr/local/bin/ffmpeg && \
chmod g+x /usr/local/bin/ffprobe && \
echo "**** install runtime ****" && \
apt-get update && \
apt-get install -y \
i965-va-driver \
libexpat1 \
libgl1-mesa-dri \
libglib2.0-0 \
libgomp1 \
libharfbuzz0b \
libv4l-0 \
libx11-6 \
libxcb1 \
libxext6 \
libxml2 \
libva-drm2 \
libva2 && \
echo "**** clean up ****" && \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/*
RUN \
# make directory
mkdir -p ${SABSCRIPTS_PATH} && \

Loading…
Cancel
Save