Skip to content

[node][proposal] Add node to PATH #1773

Description

@sosoba

Currently we need to add "magic", absolute path to node binary in health cmd:

# myapp
CMD [ "./server.js" ]
HEALTHCHECK CMD [ "/nodejs/bin/node", "./healthcheck.js" ]

If we were to enrich the environment variable PATH it would be unnecessary:

# distroless/nodejs
ENV PATH=/nodejs/bin/:$PATH
# myapp
CMD [ "./server.js" ]
HEALTHCHECK CMD [ "node", "./healthcheck.js" ]

What do you think about this improvement?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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