the base image of tornado
tornado 网络服务器的基础镜像
docker pull companyservice/tornado
downlad and run the container based on the image
下载并运行基于镜像的容器
docker run -d -P -v ($PWD):/server companyservice/tornado
the volume directory /server
is used to update the server code,
server.py
is required to be the main python file
/server
是服务器代码的挂载目录,确保server.py
是服务器启动文件