#!/bin/bash
set -e

if [[ "$*" == npm*start* ]]; then
  chown -R app "$NODE_CONTENT"

  set -- gosu app "$@"
fi

exec "$@"
#!/bin/bash
set -e

if [[ "$*" == npm*start* ]]; then
  npm install --production

  chown -R app "$NODE_CONTENT"

  set -- gosu app "$@"
fi

exec "$@"
Install NPM production dependencies before starting
Install NPM production dependencies before starting
