y2kbug

Untitled

Jan 30th, 2022 (edited)
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. FROM ubuntu:20.04
  2.  
  3. RUN apt-get update
  4. RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
  5.  
  6. RUN apt-get install -y software-properties-common
  7. RUN add-apt-repository -y "deb http://security.ubuntu.com/ubuntu xenial-security main"
  8. RUN apt-get update
  9.  
  10. RUN apt-get install -y build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
  11. RUN apt-get install -y python3-dev python3-pip python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
  12. RUN apt-get install -y freeglut3-dev mesa-common-dev libgtkglext1 libgtkglext1-dev
  13. RUN apt-get install -y checkinstall yasm libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libv4l-dev libtbb-dev libmp3lame-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils
  14.  
  15. RUN cd /lib \
  16. && git clone --branch 4.5.5 --depth 1 https://github.com/opencv/opencv.git \
  17. && git clone --branch 4.5.5 --depth 1 https://github.com/opencv/opencv_contrib.git
  18.  
  19. RUN pip install numpy \
  20. && mkdir /lib/opencv/build \
  21. && cd /lib/opencv/build \
  22. && cmake \
  23. -D CMAKE_BUILD_TYPE=RELEASE \
  24. -D CMAKE_INSTALL_PREFIX=/usr/local \
  25. -D WITH_CUDA=ON \
  26. -D WITH_CUBLAS=ON \
  27. -D CUDA_FAST_MATH=ON \
  28. -D WITH_CUFFT=ON \
  29. -D WITH_NVCUVID=ON \
  30. -D WITH_V4L=ON \
  31. -D WITH_LIBV4L=ON \
  32. -D WITH_OPENGL=ON \
  33. -D WITH_FFMPEG=ON \
  34. -D OPENCV_ENABLE_NONFREE=ON \
  35. -D OPENCV_EXTRA_MODULES_PATH=/lib/opencv_contrib/modules \
  36. .. \
  37. && make -j8 \
  38. && make install
  39.  
  40. RUN pip3 install flask[async]
  41. RUN pip3 install flask-sqlalchemy
  42. RUN pip3 install mediapipe
  43. RUN pip3 install paho-mqtt
  44. RUN pip3 install pymysql
  45. RUN pip3 install pytz
  46. RUN pip3 install requests
  47.  
Add Comment
Please, Sign In to add comment