代码拉取完成,页面将自动刷新
.PHONY: default build build-nginx run live
default: build build-nginx run
# this target sets up Jekyll, and uses it to build html
build:
docker build -t rancher/rancher.github.io:build -f Dockerfile.build .
# this target uses the Jekyll html image in a multistage Dockerfile to build a small nginx image
build-nginx:
docker build -t rancher/rancher.github.io .
run: build-nginx
docker run --rm -p 80:80 rancher/rancher.github.io
# this target will use the jekyll image and bind mount your local repo, when you modify a file, the html will be automatically rebuilt. (the redirects from latest won't work)
# You can also examine the output html in the _sites dir.
live:
docker run --rm -it -p 80:4000 -v $(PWD):/build rancher/rancher.github.io:build jekyll serve -w -P 4000 --incremental
clean:
rm -rf _sites
docker rmi rancher/rancher.github.io
docker rmi rancher/rancher.github.io:build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。