How do you add items to .dockerignore?

前端 未结 8 989
醉话见心
醉话见心 2020-12-29 01:04

I\'m not able to find many examples of what a .dockerignore file should look like.

Using puppet to install a few packages on a docker container causes the image to

8条回答
  •  离开以前
    2020-12-29 01:43

    Neither:

    modules/*
    

    nor

    modules
    

    would not work for me, docker kept on polluting the image with unnecessary files until I set it like this:

    **/modules
    

    also works with:

    **/modules/*.py
    

提交回复
热议问题