Every time a RUN command is executed during the docker build process, an image is generated. In addition, the images are related by blood. Whether it takes two hours to recompile depends on how early the first image affected by your modification is. Simple understanding when you modify dockerfile, when you modify 第N行的RUN命令, N+1之后的命令都要重跑;
Every time a RUN command is executed during the docker build process, an image is generated. In addition, the images are related by blood. Whether it takes two hours to recompile depends on how early the first image affected by your modification is.
Simple understanding when you modify dockerfile, when you modify
第N行的RUN命令, N+1之后的命令都要重跑
;