Jupyter lab build hangs and then fails at webpack --config webpack.prod.minimize.config.js

You could try adding swap if it’s still running OOM. But I’d recommend running on a larger server.