I have build the docker container from based dockerfile of Openvino 2021.4_dev. Additionally add some library need to run my python script which is top on based Openvino dockerfile.
Acceptation was when I run the container it's should start runing python script.
ENTRYPOINT ["python3","-U","main.py"]
But seem that some library doesnot found as I forget to source setupvar.sh
So I tried with RUN,shell and directly , it is not working. With shell option container started with stuck at setupvar.sh message.
I have observed one thing that whatever shell are using for python script running ,setupvar.sh should source on same shell. But as docker each CMD ,SHELL Or ENTRYPOINT executed with seperate shell on call.
How can I resolved the problem ? How can I source setupvar.sh and script on same shell so script should run once container started.
Note:I don't want it interactive solution that's not requirment as everything run as container started