3 Star 26 Fork 13

e-athena/BasicPlatform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Van Zheng 提交于 2024-04-10 10:46 +08:00 . # 修复若干问题
# 构建与推送 start
# 构建镜像
.PHONY:build
build:
docker buildx build --platform=linux/amd64 -f ./${path}/Dockerfile . -t ${image}:${tag} --push # --network=host
# 推送到镜像仓库
.PHONY:push
push:
docker push ${image}:${tag}
# 本地删除
.PHONY:rmi
rmi:
docker rmi ${image}:${tag}
# 运行命令
.PHONY:run
run:
make build # && make push && make rmi
# 运行python脚本执行<构建-推送-删除>
.PHONY:run-build
run-build:
python3 build.py -n ${name} -t ${tag}
.PHONY:run-build-help
run-build-help:
python3 build.py --help
# 构建与推送 end
.PHONY:web-api
web-api:
dotnet run --project ./BasicPlatform.WebAPI
.PHONY:web-app
web-app:
cd ./BasicPlatform.WebAPI/ConsoleApp && yarn start
.PHONY:web-app-build
web-app-build:
cd ./BasicPlatform.WebAPI/ConsoleApp && yarn build
.PHONY:web-dapr-api
web-dapr-api:
dapr run --app-id basic-platform-app --app-port 5078 -H 3500
.PHONY:cms-api
cms-api:
dotnet run --project ./Apps/CMS/CMS.WebAPI
.PHONY:cms-app
cms-app:
cd ./Apps/CMS/CMS.WebAPI/CMSWeb && yarn start
.PHONY:cms-app-build
cms-app-build:
cd ./Apps/CMS/CMS.WebAPI/CMSWeb && yarn build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/e-athena/basic-platform.git
git@gitee.com:e-athena/basic-platform.git
e-athena
basic-platform
BasicPlatform
dev

搜索帮助