Dockerfile.wheels 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. numpy \
  23. imutils \
  24. scipy \
  25. psutil \
  26. Flask \
  27. paho-mqtt \
  28. PyYAML \
  29. matplotlib \
  30. click \
  31. setproctitle \
  32. peewee
  33. FROM scratch
  34. COPY --from=build /wheels /wheels