# Node:alpine with ws (websocket) image

**URL:** <https://forums.docker.com/t/node-alpine-with-ws-websocket-image/135399>\
**Category:** Docker Hub\
**Created:** [April 3, 2023, 1:36am UTC](https://forums.docker.com/t/node-alpine-with-ws-websocket-image/135399 "2023-04-03T01:36:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwestoz](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bwestoz](https://forums.docker.com/u/bwestoz)\
**Post date:** [April 3, 2023, 1:36am UTC](https://forums.docker.com/t/node-alpine-with-ws-websocket-image/135399/1 "2023-04-03T01:36:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [April 3, 2023, 10:25pm UTC](https://forums.docker.com/t/node-alpine-with-ws-websocket-image/135399/2 "2023-04-03T22:25:53Z")

</div>

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.
