mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-11 12:21:17 +00:00
- Enforce Level 1-3 structural numbering based on SUMMARY.md hierarchy - Remove structural numbering from Level 4+ headings - Eliminate single child headings by converting to bold text - Auto-inject summary text for headings with multiple children missing intro text - Exclude Appendix chapters from structural numbering - Avoid modifying code block contents - Add script to detect non-standard English usage in headers
Drone CI Demo 项目
这是一个基于 Go 语言编写的简单 Web 应用示例,用于演示 Drone CI 的持续集成流程。
19.12 目录结构
app.go:简单的 Go Web 服务器代码。.drone.yml:Drone CI 的配置文件,定义了构建和测试流程。Dockerfile:定义了如何将该应用构建为 Docker 镜像。
19.12 如何运行
-
确保本地已安装 Docker 环境。
-
进入本目录构建镜像:
docker build -t drone-demo-app . -
运行容器:
docker run -p 8080:8080 drone-demo-app -
访问
http://localhost:8080查看效果。