toptal / gitignore.io

Create useful .gitignore files for your project

Home Page:https://www.toptal.com/developers/gitignore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Is there something like dockerignore.io ?

kevinadhiguna opened this issue · comments

Issue

Hi, I would like to ask if there is something like gitignore.io for .dockerignore.

I am a bit confused as I do not think .gitignore and .dockerignore are same. Let's say I have a Dockerfile. It might be included in .dockerignore but not in .gitignore.

Any suggestion is appreciated !

Development Environment:

  • Machine (Local, Container, Virtual):
  • Operating System (Name/Version):
  • Web Browser (Name/Version):
  • Vapor Version:
  • Swift Version:

Hello @kevinadhiguna! Yes, you're correct. .gitignore and .dockerignore are not the same.

.dockerignore describes what won't be included into docker context. So, basically, stuff you don't need to build a container, which depends on your project's need.

I see. Thank you @deniskaber !

Official .dockerignore docs: https://docs.docker.com/engine/reference/builder/#dockerignore-file

After having a quick search:

Not sure there is such a service for .dockerignore, but you could also search Github for example usage

Closing this issue! Feel free to reopen if you need any more information