docker 安裝opencv python - jenhaoyang/ml_blog GitHub Wiki

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update ##[edited]
RUN apt-get install ffmpeg libsm6 libxext6  -y
RUN pip install opencv-python

參考:
https://stackoverflow.com/a/63377623