Add node-dev v2 images which, if they see yarn.lock, will install dependencies on startup using Yarn instead of NPM.
Reviewer note: All files are identical to their v1 versions except this bit changed in the entrypoint script:
if [[ -f /usr/local/src/app/yarn.lock ]]; then
echo "(Using Yarn because there is a yarn.lock file)"
su-exec node yarn install
else
su-exec node npm install --no-audit
fi
Add node-dev
v2
images which, if they seeyarn.lock
, will install dependencies on startup using Yarn instead of NPM.Reviewer note: All files are identical to their
v1
versions except this bit changed in the entrypoint script: