Dockerfile.wheels 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM ubuntu:20.04 as build
  2. ENV DEBIAN_FRONTEND=noninteractive
  3. RUN apt-get -qq update \
  4. && apt-get -qq install -y \
  5. python3 \
  6. python3-dev \
  7. wget \
  8. # opencv dependencies
  9. build-essential cmake git pkg-config libgtk-3-dev \
  10. libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
  11. libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \
  12. gfortran openexr libatlas-base-dev libssl-dev\
  13. libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \
  14. libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev \
  15. # scipy dependencies
  16. gcc gfortran libopenblas-dev liblapack-dev cython
  17. RUN wget -q https://bootstrap.pypa.io/get-pip.py -O get-pip.py \
  18. && python3 get-pip.py "pip==20.2.4"
  19. RUN pip3 install scikit-build
  20. RUN pip3 wheel --wheel-dir=/wheels \
  21. opencv-python-headless \
  22. # pinning due to issue in 1.19.5 https://github.com/numpy/numpy/issues/18131
  23. numpy==1.19.4 \
  24. imutils \
  25. scipy \
  26. psutil \
  27. Flask \
  28. paho-mqtt \
  29. PyYAML \
  30. matplotlib \
  31. click \
  32. setproctitle \
  33. peewee \
  34. gevent
  35. FROM scratch
  36. COPY --from=build /wheels /wheels