I would like to create an image containing thumbor and open cv using pip install and apt-get but I have an issue. I can start and use thumbor but when I want to add the face detection functionality into the thumbor conf file, I can’t create my image because the system can’t import cv2.cv to set the thumbor server.
This is my Dockerfile configuration :
RUN apt-get -y update
RUN apt-get -y upgrade
RUN pip install thumbor
RUN apt-get install libopencv-dev python-opencv
ADD thumbor_conf.py thumbor_conf.py
CMD thumbor --conf=thumbor_conf.py
And my thumbor configuration:
DETECTORS = [“thumbor.detectors.face_detector”, “thumbor.detectors.profile_detector”]
STORAGE = ‘thumbor.storages.no_storage’
Is there anyone who have an idea ?
Thanks in advance,