- create dockerfile
1). config frontend project build
2). config nginx
- create
nginx/default.conf
- build docker
sudo docker build -t imageName
- run docker
docker run --rm -d -p80:80 imageName
- find docker host and port
ifconfig
- type docker host + post + frontendRoutePath in browser address bar, such as: http://localhost/login
- login docker
docker login
- tag docker image
docker tag imageName:version userName/imageName:version
- push image to remote docker hub
docker push dockerUserName/imageName:version
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。