When you run poetry run python
it tries to run the python command within the venv
. But the problem is python interpreter which is going to be run is symlink of the python3
in that virtual environment, and you cannot copy symlinks of something in your computer to the docker container.