COPY dockerfile
时间: 2023-09-20 08:14:55 浏览: 76
COPY是Dockerfile中的一条指令,用于将文件或文件夹从主机(宿主机)复制到正在构建的镜像中的指定目录。它的语法是COPY <src>... <dest>,其中<src>是主机中的源文件或文件夹路径,<dest>是镜像中目标路径。这个指令可以用于在构建镜像的过程中将需要的文件复制到镜像中,以便在容器中使用。引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Dockerfile命令详解之 COPY](https://blog.csdn.net/qq_38220908/article/details/126680214)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Dockerfile中的copy命令](https://blog.csdn.net/qq_41572507/article/details/121791129)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文