Node:alpine with ws (websocket) image

Newbie Question
How can I create a reasonably lightweight node image (alpine?) that includes the websocket (ws) library?
When I use the default node:alpine base I get an error ws not found.
I’ve tried some commands to install ws in the Dockerfile but have not succeeded so far.
Any guidance appreciate

Please, share what you have tried so far. You could get more response when you share what you have tried and how it failed. I could only tell you that you need to install it in the image, which you tried.