From 901c4f18cb441b04db30b4f883292f1d73e4ae89 Mon Sep 17 00:00:00 2001 From: Ben Schattinger Date: Thu, 25 Oct 2018 16:56:10 -0400 Subject: [PATCH] Install face_recognition on Docker build (#17502) * Install face_recognition on Docker * Update setup_docker_prereqs --- Dockerfile | 1 + virtualization/Docker/Dockerfile.dev | 1 + virtualization/Docker/setup_docker_prereqs | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index c84e6162d04..92b85c29325 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ LABEL maintainer="Paulus Schoutsen " #ENV INSTALL_FFMPEG no #ENV INSTALL_LIBCEC no #ENV INSTALL_SSOCR no +#ENV INSTALL_DLIB no #ENV INSTALL_IPERF3 no VOLUME /config diff --git a/virtualization/Docker/Dockerfile.dev b/virtualization/Docker/Dockerfile.dev index 79072703031..3046fe51ba3 100644 --- a/virtualization/Docker/Dockerfile.dev +++ b/virtualization/Docker/Dockerfile.dev @@ -12,6 +12,7 @@ LABEL maintainer="Paulus Schoutsen " #ENV INSTALL_LIBCEC no #ENV INSTALL_COAP no #ENV INSTALL_SSOCR no +#ENV INSTALL_DLIB no #ENV INSTALL_IPERF3 no VOLUME /config diff --git a/virtualization/Docker/setup_docker_prereqs b/virtualization/Docker/setup_docker_prereqs index 65acf92b855..713bbfffba4 100755 --- a/virtualization/Docker/setup_docker_prereqs +++ b/virtualization/Docker/setup_docker_prereqs @@ -8,6 +8,7 @@ INSTALL_TELLSTICK="${INSTALL_TELLSTICK:-yes}" INSTALL_OPENALPR="${INSTALL_OPENALPR:-yes}" INSTALL_LIBCEC="${INSTALL_LIBCEC:-yes}" INSTALL_SSOCR="${INSTALL_SSOCR:-yes}" +INSTALL_DLIB="${INSTALL_DLIB:-yes}" # Required debian packages for running hass or components PACKAGES=( @@ -62,6 +63,10 @@ if [ "$INSTALL_SSOCR" == "yes" ]; then virtualization/Docker/scripts/ssocr fi +if [ "$INSTALL_DLIB" == "yes" ]; then + pip3 install --no-cache-dir "dlib>=19.5" +fi + # Remove packages apt-get remove -y --purge ${PACKAGES_DEV[@]} apt-get -y --purge autoremove