From 2a0b96e1c3af6d39399a69fb96c57882392101cb Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Sun, 17 Jan 2021 23:12:55 -0700 Subject: [PATCH] Add opencv and dependencies Signed-off-by: Luigi311 --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index be2f62c..742c486 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM archlinux:base-devel -ENV MPLCONFIGDIR="/videos" +ENV MPLCONFIGDIR="/home/app_user/" # Fix keyring RUN rm -fr /etc/pacman.d/gnupg && \ @@ -20,7 +20,7 @@ USER app_user RUN sudo pacman -Syu --noprogressbar --noconfirm # Install requirements -RUN sudo pacman -S --noprogressbar --noconfirm opencv git cmake yasm doxygen python python-pip go +RUN sudo pacman -S --noprogressbar --noconfirm opencv opencv-samples hdf5 qt5-base git cmake yasm doxygen python python-pip go # Install x265 and x264 RUN sudo pacman -S --noprogressbar --noconfirm x265 x264 @@ -74,8 +74,7 @@ RUN yes | makepkg -sri # Install av1an COPY . /home/app_user/Av1an WORKDIR /home/app_user/Av1an -RUN sudo python setup.py install && \ - sudo ln av1an.py /usr/local/bin/av1an +RUN sudo python setup.py install # Change permissions RUN sudo chmod 777 -R /home/app_user @@ -83,4 +82,4 @@ RUN sudo chmod 777 -R /home/app_user VOLUME ["/videos"] WORKDIR /videos -ENTRYPOINT [ "/usr/local/bin/av1an" ] +ENTRYPOINT [ "/home/app_user/Av1an/av1an.py" ]