FROM python:3.7-buster
ENV TZ=“Asia/Jerusalem”
RUN apt-get -y update
RUN apt-get install -y --allow-unauthenticated
build-essential
cmake
gfortran
git
wget
curl
graphicsmagick
libgraphicsmagick1-dev
libatlas-base-dev
libavcodec-dev
libavformat-dev
libjpeg-dev
liblapack-dev
libswscale-dev
pkg-config
zip
&& apt-get clean && rm -rf /tmp/* /var/tmp/*
RUN python3 -m pip install numpy
RUN python3 -m pip install Flask
RUN python3 -m pip install imutils
RUN python3 -m pip install PyEventEmitter
RUN python3 -m pip install scipy
RUN python3 -m pip install requests
RUN python3 -m pip install APScheduler
RUN python3 -m pip install eventemitter
RUN python3 -m pip install pytz tzlocal
RUN python3 -m pip install websocket
RUN python3 -m pip install websocket-client
RUN python3 -m pip install flask_socketio
RUN python3 -m pip install keyboard
RUN python3 -m pip install munkres
RUN python3 -m pip install linalg
RUN python3 -m pip install matplotlib
RUN python3 -m pip install flask_cors
RUN python3 -m pip install pyee
#RUN python3 -m pip install ffmpeg
RUN apt-get update && apt-get install -y ffmpeg
RUN cd ~
RUN mkdir -p dlib
RUN git clone -b basename $(curl -fs -o/dev/null -w %{redirect_url} https://github.com/davisking/dlib/releases/latest)
--single-branch GitHub - davisking/dlib: A toolkit for making real world machine learning and data analysis applications in C++ dlib/ &&
RUN cd dlib
RUN python3 setup.py install
#RUN python3 -m pip install opencv_contrib_python==4.4.0.46
RUN python3 -m pip install opencv_contrib_python
RUN apt-get install libx264-dev
ADD . .
EXPOSE 5001
CMD [ “python3”, “./analytics-manager.py” ]