50.docker-image-create.bat 980 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @echo off
  2. echo %~n0.bat start...
  3. ::(x.1)获取basePath
  4. set curPath=%cd%
  5. cd /d "%~dp0"
  6. cd /d ../../..
  7. set basePath=%cd%
  8. ::(x.2)
  9. set publishPath=%basePath%/Publish/release/release/Station(net5.0)
  10. set dockerPath=%basePath%/Publish/release/release/docker-image
  11. rd /s /q "%dockerPath%"
  12. ::(x.3)copy dir
  13. xcopy "%basePath%/Publish/ReleaseFile/docker-image" "%dockerPath%" /e /i /r /y
  14. ::(x.4)copy station
  15. xcopy "%publishPath%/ServiceCenter" "%dockerPath%/sers/app" /e /i /r /y
  16. xcopy "%publishPath%/Gateway" "%dockerPath%/sers-gateway/app" /e /i /r /y
  17. xcopy "%publishPath%/Gover" "%dockerPath%/sers-gover/app" /e /i /r /y
  18. xcopy "%publishPath%/Demo" "%dockerPath%/sers-demo/app" /e /i /r /y
  19. xcopy "%publishPath%/Robot" "%dockerPath%/sers-demo-robot/app" /e /i /r /y
  20. xcopy "%basePath%/Publish/release/release/压测/单体压测net5.0/ServiceCenter" "%dockerPath%/sers-demo-sersall/app" /e /i /r /y
  21. echo %~n0.bat 执行成功!
  22. cd /d "%curPath%"