You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

multi-edge-inference-pedestrian-tracking-videoanalytics.Dockerfile 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. FROM python:3.8
  2. WORKDIR /home
  3. RUN apt update
  4. # Required by OpenCV
  5. RUN apt install libgl1-mesa-glx -y
  6. RUN apt install -y gfortran libopenblas-dev liblapack-dev
  7. ## Install applications dependencies
  8. RUN pip install torch torchvision tqdm pillow opencv-python pytorch-ignite asyncio
  9. ## Install Kafka Python library
  10. RUN pip install kafka-python
  11. ## Add tracking dependencies
  12. RUN pip install lap scipy Cython
  13. RUN pip install cython_bbox
  14. ## Install S3 library
  15. RUN pip install boto3
  16. # ONNX
  17. RUN pip install onnx protobuf==3.16.0
  18. WORKDIR /home
  19. ## SEDNA SECTION ##
  20. COPY ./lib/requirements.txt /home
  21. RUN pip install -r /home/requirements.txt
  22. ENV PYTHONPATH "${PYTHONPATH}:/home/lib"
  23. WORKDIR /home/work
  24. COPY ./lib /home/lib
  25. COPY examples/multiedgeinference/pedestrian_tracking/detection /home/work/
  26. ENV LOG_LEVEL="DEBUG"
  27. ENTRYPOINT ["python"]
  28. CMD ["worker.py"]