Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to remove unused node-red modules? #26

Closed
sputnick opened this issue Feb 23, 2017 · 1 comment
Closed

Is there any way to remove unused node-red modules? #26

sputnick opened this issue Feb 23, 2017 · 1 comment

Comments

@sputnick
Copy link

I'm trying to slim down a docker container for a flow that only uses http and websockets and some custom functions.

@sputnick sputnick changed the title Is there any way to remove unused node npms? Is there any way to remove unused node-red modules? Feb 23, 2017
@knolleary
Copy link
Member

Beyond the core nodes which are included with Node-RED, this image includes for other, nondefault, but useful node modules, as listed here: https://github.com/node-red/node-red-docker/blob/master/package.json

You could rebuild the image with a modified package.json that doesn't include those four.
If you wanted to strip out any of the core nodes, you'd need to include a step in your docker build after the npm install step that manually rm's the nodes you don't want from under the module's nodes directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants