1 Star 0 Fork 0

sdndohlil-bwycc/rancher.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 900 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sven Dowideit 提交于 2017-08-17 05:56 +08:00 . Add versions to os docs (#873)
.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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sdndohlil-bwycc/rancher.github.io.git
git@gitee.com:sdndohlil-bwycc/rancher.github.io.git
sdndohlil-bwycc
rancher.github.io
rancher.github.io
master

搜索帮助