-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(superchain): use entrypoint to set up nvm (#2736)
This ensures node is always in the PATH at the start of a container (unless the user replaced the entrypoint). This attempts to minimize overhead of the overall setup by using exec in the run.sh script.
- Loading branch information
1 parent
74d0d99
commit 0e247b6
Showing
3 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
source "$NVM_DIR/nvm.sh" | ||
[[ -z "$NVM_USE_VERSION" ]] || nvm use "$NVM_USE_VERSION" | ||
|
||
exec "$@" |