Specify build runtime or use container to build

Hi,

We have a node server for authentication, that uses bcrypt to validate user credentials.
We would like to deploy this to a lambda function with serverless, but bcrypt needs to be compiled on the same OS as its hosted. There are multiple developers working on this, each on different hardware, so we need a consistent method of building the project before we deploy.
I’ve seen AWS SAM has an option to do “sam build --use-container” to build the package on a “lambda-like” environment. Is there any way to achieve this with serverless?

/Magnus