client-entrypoint.sh 387 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. #
  7. # echo "Cleaning npm cache"
  8. # npm cache clean --f
  9. #
  10. # echo "Npm install"
  11. # npm install
  12. echo "Npm init"
  13. npm ci
  14. # echo "Run npm dev"
  15. # npm run dev
  16. echo "APP_ENV $APP_ENV"
  17. if [ "$APP_ENV" = "prod" ]; then
  18. echo "Run npm prod"
  19. npm run prod
  20. else
  21. echo "Run npm dev"
  22. npm run dev
  23. fi