node: support latest as version option (#5)

This commit is contained in:
Samruddhi Khandale 2022-05-11 13:28:45 -07:00 committed by GitHub
parent ccaa08a416
commit e35e92e44c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,6 +98,8 @@ if [ "${NODE_VERSION}" = "none" ]; then
export NODE_VERSION=
elif [ "${NODE_VERSION}" = "lts" ]; then
export NODE_VERSION="lts/*"
elif [ "${NODE_VERSION}" = "latest" ]; then
export NODE_VERSION="node"
fi
# Create a symlink to the installed version for use in Dockerfile PATH statements