健康同学微信公众号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.

19 satır
692B

  1. npm -v
  2. npm config set registry https://registry.npm.taobao.org
  3. npm install
  4. npm run build-dev
  5. image_version=`date +%Y%m%d%H%M`;
  6. docker stop health_student_web || true;
  7. docker rm health_student_web || true;
  8. # 删除镜像
  9. docker rmi -f $(docker images | grep telpo/health_student_web | awk '{print $3}')
  10. # 构建telpo/mrp:$image_version镜像
  11. docker build --no-cache . -t telpo/health_student_web:$image_version;
  12. #删除产生的None镜像
  13. docker rmi -f $(docker images | grep none | awk '{print $3}')
  14. # 查看镜像列表
  15. docker images;
  16. docker run -p 8070:80 -d --restart=always --name health_student_web telpo/health_student_web:$image_version;
  17. # 查看日志
  18. docker logs health_student_web;