mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
Add new content and update versions
This commit is contained in:
@@ -203,6 +203,11 @@ COPY --link --from=builder /app/dist /usr/share/nginx/html
|
||||
- 并行化构建过程
|
||||
- 加速多阶段构建
|
||||
|
||||
> ⚠️ **注意**:使用 `--link` 需要满足以下条件:
|
||||
> - 启用 BuildKit(Docker Engine 23.0+ 默认启用)
|
||||
> - Dockerfile 语法版本 1.4 或更高(在首行声明 `# syntax=docker/dockerfile:1`)
|
||||
> - 目标路径在前序指令中应不存在或为空目录
|
||||
|
||||
---
|
||||
|
||||
### 7.2.9 dockerignore
|
||||
|
||||
Reference in New Issue
Block a user