client-entrypoint.sh 349 B

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