Skip to content

alternatives to npm start #275

Open
Open
@evanshortiss

Description

@evanshortiss

I've noticed that the resulting s2i image starts the Node.js application using npm start.

This is a good idea since it's common practice and enables a developer to set flags etc, but it does result in two Node.js processes being launched, as seen in this screenshot:

Screenshot 2021-05-14 at 3 21 33 PM

We have the npm process, and then the child node process.

The npm process is mostly idle, but does consume memory and adds overhead on startup.

Screenshot 2021-05-14 at 3 56 57 PM

Is it worth giving consideration to support a new environment variable that defines a shell script to use on startup instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions