How do you add items to .dockerignore?

前端 未结 8 938
醉话见心
醉话见心 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:56

    A different way of doing it, creating a smaller image, is to run librarian-puppet in the host, not in Docker, so you don't end with librarian, ruby, gems,... installed in the image.

    I ended with a 622MB image for jenkins slave using Puppet, and a 480MB image without Puppet.

提交回复
热议问题