Install face_recognition on Docker build (#17502)
* Install face_recognition on Docker * Update setup_docker_prereqspull/17796/head
parent
43048962f2
commit
901c4f18cb
|
@ -11,6 +11,7 @@ LABEL maintainer="Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>"
|
|||
#ENV INSTALL_FFMPEG no
|
||||
#ENV INSTALL_LIBCEC no
|
||||
#ENV INSTALL_SSOCR no
|
||||
#ENV INSTALL_DLIB no
|
||||
#ENV INSTALL_IPERF3 no
|
||||
|
||||
VOLUME /config
|
||||
|
|
|
@ -12,6 +12,7 @@ LABEL maintainer="Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>"
|
|||
#ENV INSTALL_LIBCEC no
|
||||
#ENV INSTALL_COAP no
|
||||
#ENV INSTALL_SSOCR no
|
||||
#ENV INSTALL_DLIB no
|
||||
#ENV INSTALL_IPERF3 no
|
||||
|
||||
VOLUME /config
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue