Hi @djshan1979
I think you can just keep opencv-python-headless and remove opencv_python from the requirements.txt file. This might cause an opencv conflict and the above issue.
Please refer to the similar link - Importerror: libgl.so.1: cannot open shared object file: no such file or directory opencv error