client-entrypoint.sh 394 B

1234567891011121314151617181920212223242526272829
  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 "Npm clean install"
  11. npm ci
  12. # echo "Run npm dev"
  13. # npm run dev
  14. echo "APP_ENV $APP_ENV"
  15. if [ "$APP_ENV" = "prod" ]; then
  16. echo "Run npm prod"
  17. npm run prod
  18. else
  19. echo "Run npm dev"
  20. npm run dev
  21. fi