Add blank lines before headers

This commit is contained in:
yeasy
2026-03-21 12:57:51 -07:00
parent 0648f63979
commit 312f8fea42
76 changed files with 411 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ CMD ["npm", "start"]
```docker
FROM my-node-base
## 只需要一行!
## 构建时会自动执行 COPY 和 RUN
@@ -74,6 +75,7 @@ FROM 基础镜像 ──build──> 读取基础镜像触发器 ──> 执行
#### 1. 自动处理依赖安装
```docker
## Python 基础镜像
ONBUILD COPY requirements.txt ./
@@ -83,6 +85,7 @@ ONBUILD RUN pip install -r requirements.txt
#### 2. 自动编译代码
```docker
## Go 基础镜像
ONBUILD COPY . .
@@ -92,6 +95,7 @@ ONBUILD RUN go build -o app main.go
#### 3. 处理静态资源
```docker
## Nginx 静态网站基础镜像
ONBUILD COPY dist/ /usr/share/nginx/html/