将Dockerfile中的"copy . ."指令移至系统设置之后的副作用是构建过程现在将在复制文件之前缓存层。
这意味着如果系统设置保持不变,后续构建将更快,因为将重用缓存的层。
optimize(dockerfile): Moved "copy . ." after system setup
The side effect of moving the "copy . ." instruction after the system setup in the Dockerfile is that the build process will now cache the layers before copying the files.
This means that if the system setup remains unchanged, subsequent builds will be faster as the cached layers will be reused.
* Added NVIDIA GPU support to Docker
* feat: Added NVIDIA GPU support to Docker
---------
Co-authored-by: Abdellah Derfoufi <mohammed-abdellah.derfoufi@capgemini.com>