天波h5前端应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup_development.sh 855B

10 kuukautta sitten
1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. ###
  3. # @Date: 2022-08-18 09:19:07
  4. # @LastEditors: JinxChen
  5. # @LastEditTime: 2022-08-18 10:06:17
  6. # @FilePath: \TelpoH5FrontendWeb\setup_development.sh
  7. # @description:
  8. ###
  9. npm -v
  10. npm config set registry https://registry.npmmirror.com
  11. npm install
  12. npm run build-dev
  13. image_version=`date +%Y%m%d%H%M`;
  14. docker stop h5_frontend_web || true;
  15. docker rm h5_frontend_web || true;
  16. # 删除镜像
  17. docker rmi -f $(docker images | grep telpo/h5_frontend_web | awk '{print $3}')
  18. # 构建telpo/mrp:$image_version镜像
  19. docker build --no-cache . -t telpo/h5_frontend_web:$image_version;
  20. #删除产生的None镜像
  21. docker rmi -f $(docker images | grep none | awk '{print $3}')
  22. # 查看镜像列表
  23. docker images;
  24. docker run -p 8075:80 -d --restart=always --name h5_frontend_web telpo/h5_frontend_web:$image_version;
  25. # 查看日志
  26. docker logs h5_frontend_web;