Local docker install fails due to lack of python on mac

So it looks like the dockerfile installation doesn’t work anymore. It fails and gives the error

#9 35.38 Installation failed, likely because PIP is unavailable, if you are on Debian/Ubuntu or derivative please install the python3-pip package
#9 35.38 # Install meson and ninja using pip into custom location, so we don’t
#9 35.39 # depend on system-wide installation.
#9 35.39 /usr/bin/python3 -m pip install --upgrade --target=/service/node_modules/mediasoup/worker/out/pip meson ninja
#9 35.43 /usr/bin/python3: No module named pip
#9 35.44 Makefile:57: recipe for target 'meson-ninja

I was able to fix this by using node:lts and adding python3 and python3-pip to the dockerfile. The dockerfile on the repository should be updated so others don’t run into this issue unless I’m missing something.

Feel free to write a PR, please.

1 Like