Multiple .dockerignore files in same directory

前端 未结 3 1232
礼貌的吻别
礼貌的吻别 2021-01-11 10:53

In the same directory I have two Dockerfiles and I would like to add a separate .dockerignore for each of them.

Currently, I have:

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-11 11:06

    Multiple dockerignore files or specifying which dockerignore file to use is currently not supported by Docker.

    See this issue on Github: Add support for specifying .dockerignore file with -i/--ignore

提交回复
热议问题