mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-28 04:35:27 +00:00
Polish Docker workflow formatting
This commit is contained in:
@@ -40,7 +40,7 @@ RUN ["apt-get", "update"]
|
||||
|
||||
### 7.1.3 常见最佳实践
|
||||
|
||||
#### 1. 组合命令 (减少层数)
|
||||
#### 1. 组合命令:减少层数
|
||||
|
||||
每一个 `RUN` 指令都会新建一层镜像。为了减少镜像体积和层数,应使用 `&&` 连接命令。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user