I'm running a python Flask server which is doing face recognition with https://github.com/ageitgey/face_recognition.
The face_encodings
function is taking 10 times longer when running through docker in comparison to just starting the server in my machine and I have no idea why.
I think the most important part of my Dockerfile is this:
FROM python:3.6-slim-stretch
RUN cd ~ && \
mkdir -p dlib && \
git clone -b 'v19.9' --single-branch https://github.com/davisking/dlib.git dlib/ && \
cd dlib/ && \
python3 setup.py install --yes USE_AVX_INSTRUCTIONS
Am I doing something wrong? Why is the docker container so much slower? Am I installing dlib
in a wrong way?