client-entrypoint.sh 302 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. cat /etc/passwd|grep 1000
  3. cd /app
  4. echo "Cleaning node_modules"
  5. rm -rf node_modules
  6. echo "Npm install"
  7. npm install
  8. # echo "Run npm dev"
  9. # npm run dev
  10. echo "APP_ENV $APP_ENV"
  11. if [ "$APP_ENV" = "prod" ]; then
  12. echo "Run npm prod"
  13. npm run prod
  14. else
  15. echo "Run npm dev"
  16. npm run dev
  17. fi