mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
update opencv
This commit is contained in:
parent
4a77046c7c
commit
071fcf6ea2
12
Dockerfile
12
Dockerfile
@ -61,17 +61,17 @@ RUN cd /usr/local/src/ \
|
|||||||
RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
|
RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
|
||||||
|
|
||||||
# Download & build OpenCV
|
# Download & build OpenCV
|
||||||
RUN wget -q -P /usr/local/src/ --no-check-certificate https://github.com/opencv/opencv/archive/3.4.1.zip
|
RUN wget -q -P /usr/local/src/ --no-check-certificate https://github.com/opencv/opencv/archive/4.0.1.zip
|
||||||
RUN cd /usr/local/src/ \
|
RUN cd /usr/local/src/ \
|
||||||
&& unzip 3.4.1.zip \
|
&& unzip 4.0.1.zip \
|
||||||
&& rm 3.4.1.zip \
|
&& rm 4.0.1.zip \
|
||||||
&& cd /usr/local/src/opencv-3.4.1/ \
|
&& cd /usr/local/src/opencv-4.0.1/ \
|
||||||
&& mkdir build \
|
&& mkdir build \
|
||||||
&& cd /usr/local/src/opencv-3.4.1/build \
|
&& cd /usr/local/src/opencv-4.0.1/build \
|
||||||
&& cmake -D CMAKE_INSTALL_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local/ .. \
|
&& cmake -D CMAKE_INSTALL_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local/ .. \
|
||||||
&& make -j4 \
|
&& make -j4 \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& rm -rf /usr/local/src/opencv-3.4.1
|
&& rm -rf /usr/local/src/opencv-4.0.1
|
||||||
|
|
||||||
# Minimize image size
|
# Minimize image size
|
||||||
RUN (apt-get autoremove -y; \
|
RUN (apt-get autoremove -y; \
|
||||||
|
Loading…
Reference in New Issue
Block a user