dockerfile可以放入.dockerignore吗?
发布时间:2020-12-16 03:45:52 所属栏目:安全 来源:网络整理
导读:文档说是的,它可以. https://docs.docker.com/engine/reference/builder/ You can even use the .dockerignore file to exclude the Dockerfile and .dockerignore files. These files are still sent to the daemon because it needs them to do its job. B
文档说是的,它可以. https://docs.docker.com/engine/reference/builder/
但是当我把dockerfile放在.dockerignore中时,我得到了
最佳答案
是的你可以;你甚至可以将.dockerignore本身扔进那里!
你可能做错了什么 – 可能在错误的目录中? 目录列表:
文件内容:
建一次;指定–no-cache为详细:
添加一些东西到Dockerfile并重建:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |