1 Star 0 Fork 0

shaoziyang/WikiDocs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
Manuel Zavatta 提交于 2024-09-14 14:19 +08:00 . update makefile
# Wiki|Docs Makefile
# Build Development environment
dev-build:
docker build --no-cache -f docker/development.dockerfile -t wikidocs-dev .
# Run Development environment
dev-run:
docker run --name wikidocs-dev -d -p 81:80 -v ${PWD}:/var/www/localhost/htdocs wikidocs-dev
# Build NginX Development environment
dev-nginx-build:
docker build --no-cache -f docker/development.nginx.dockerfile -t wikidocs-nginx-dev .
# Run NginX Development environment
dev-nginx-run:
docker run --name wikidocs-nginx-dev -d -p 82:80 -v ${PWD}:/var/www/html wikidocs-nginx-dev
# Build Production environment
prd-build:
docker build --no-cache -f docker/production.dockerfile -t wikidocs-prd .
# Run Production environment for local tests
prd-run:
docker run --name wikidocs-prd -d -p 88:80 -v ${PWD}:/var/www/localhost/htdocs wikidocs-prd
# Prepare multi-architecture build for Docker Hub
hub-prepare:
docker buildx create --name builder --driver docker-container --use
docker buildx inspect --bootstrap
# Build multi-architecture and Push to Docker Hub
hub:
docker buildx build -f docker/production.dockerfile --platform linux/amd64,linux/arm64 --no-cache --push -t zavy86/wikidocs .
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/shaoziyang/WikiDocs.git
git@gitee.com:shaoziyang/WikiDocs.git
shaoziyang
WikiDocs
WikiDocs
master

搜索帮助