reactioncommerce / docker-base

Apache License 2.0
4 stars 11 forks source link

feat: v2 of node-dev images with Yarn support #2

Closed aldeed closed 5 years ago

aldeed commented 5 years ago

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