How to solve “Could not find any Python installation to use” with docker node alpine Image when adding bcrypt to package.json?

Add this in you docker file before npm install:

RUN apk add --update python make g++\
   && rm -rf /var/cache/apk/*

If you’re working with Python 3, remember to use python3 instead of python.

Leave a Comment