Skip to content

Remove development dependencies from webui container #488

@bziemons

Description

@bziemons

Development dependencies are installed when using npm install without any additional parameters.

RUN npm install

These dependencies bloat the image and increases the general amount of packages and therefore security vulnerabilities in the image.
NPM can be told to not install dev dependencies by using the NODE_ENV environment variable or the --production switch on npm install,
see https://docs.npmjs.com/cli/v9/commands/npm-install?v=true

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions