Docker基于Dockerfile多级构建,实现缩小镜像体积

摘要: Docker基于Dockerfile多级构建,实现缩小镜像体积 基于上次的nginx的Dockerfile做多级构建 FROM centos:7 as build #基于centos7镜像 MAINTAINER this is nginx of LNMP on centos by yr 2024-0