build.sh 415 B

123456789101112131415
  1. #!/bin/sh
  2. git pull
  3. rm -f Bin/ChatGameServer/ChatGameServer
  4. docker stop chat_game_svr
  5. docker rm chat_game_svr
  6. docker build -t chat_game:latest .
  7. docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
  8. docker run -d --name chat_game_svr --net=host -v /data/ChatGameService/Log:/release/Log -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro chat_game:latest
  9. cd Log
  10. tail -f info.log