FROM

指定所创建镜像的基础镜像。格式为FROM <image> [AS <name>]FROM <image>:<tag> [AS <name>]FROM <image>@<digest> [AS <name>]

为了保证镜像精简,可以选用体积较小的镜像如Alpine或Debian作为基础镜像。

Last updated

Was this helpful?