Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.dockerignore support #58

Closed
linux-china opened this issue Nov 13, 2014 · 1 comment
Closed

.dockerignore support #58

linux-china opened this issue Nov 13, 2014 · 1 comment

Comments

@linux-china
Copy link

The .dockerignore file
If a file named .dockerignore exists in the source repository, then it is interpreted as a newline-separated list of exclusion patterns. Exclusion patterns match files or directories relative to the source repository that will be excluded from the context. Globbing is done using Go's filepath.Match rules.

The following example shows the use of the .dockerignore file to exclude the .git directory from the context. Its effect can be seen in the changed size of the uploaded context.

http://docs.docker.com/reference/builder/

@hsz
Copy link
Member

hsz commented Dec 22, 2014

@linux-china .dockerignore files are supported now with v0.8 release.

@hsz hsz closed this as completed Jan 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants