My Node Dockfile
:
# Set the base image to ubuntu
FROM ubuntu
# Define working directory
ADD . /src
WORKDIR /src
# Install Node.js & other
I was experiencing same thing, even though using Express, not Sails. I tried every suggestion here with no success. What made the trick was change the npm module bcrypt by bcryptjs:
npm uninstal bcrypt
npm install bcryptjs --save
Then change your require to something like
var bcrypt = require('bcryptjs');
It is working flawlessly now.