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-feature-extraction.Dockerfile 833 B

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