nan appears to be still incompatible with nodejs v12. Using nodejs v10 (--lts at the time the nodejs-docker/Dockerfile was written) solves the problem