it is basically always safe to upgrade numpy except in containers like nvidia's, where the packages are built against numpy 1. this means you will want to freeze numpy depending on the environment, ...
1. docker build -t opencv-cuda-latest . 2. docker login 3. docker tag opencv-cuda-latest:latest namdeopatil/opencv-cuda:latest 4. docker push namdeopatil/opencv-cuda ...