天波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.

27 line
924B

  1. ###
  2. # @Author: your name
  3. # @Date: 2020-07-02 10:34:00
  4. # @LastEditTime: 2022-02-25 15:01:41
  5. # @LastEditors: JinxChen
  6. # @Description: In User Settings Edit
  7. # @FilePath: \AntpayFrontEnd\setup_development.sh
  8. ###
  9. #!/bin/bash
  10. npm -v
  11. npm config set registry https://registry.npm.taobao.org
  12. npm install
  13. npm run build-dev
  14. image_version=`date +%Y%m%d%H%M`;
  15. docker stop antpay_frontend_web || true;
  16. docker rm antpay_frontend_web || true;
  17. # 删除镜像
  18. docker rmi -f $(docker images | grep telpo/antpay_frontend_web | awk '{print $3}')
  19. # 构建telpo/mrp:$image_version镜像
  20. docker build --no-cache . -t telpo/antpay_frontend_web:$image_version;
  21. #删除产生的None镜像
  22. docker rmi -f $(docker images | grep none | awk '{print $3}')
  23. # 查看镜像列表
  24. docker images;
  25. docker run -p 8804:80 -d --restart=always --name antpay_frontend_web telpo/antpay_frontend_web:$image_version;
  26. # 查看日志
  27. docker logs antpay_frontend_web;