How to add a certain file or directory in a Git project to an image?
Explanation:
- Taking the project
mindoc
on GitLab in the following figure as an example, to add the contents of theconf
directory under themindoc
project directory to the/mindoc
directory of the image, you need to add the following statement in the Dockerfile:COPY mindoc/conf /mindoc/
作者:chering 创建时间:2025-01-16 14:22
最后编辑:chering 更新时间:2025-01-17 09:02
最后编辑:chering 更新时间:2025-01-17 09:02