{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12886","labels_url":"https://api.github.com/repos/docker/docker/issues/12886/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12886/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12886/events","html_url":"https://github.com/docker/docker/issues/12886","id":72037583,"number":12886,"title":"Add support for specifying .dockerignore file with -i/--ignore","user":{"login":"tristanz","id":290978,"avatar_url":"https://avatars.githubusercontent.com/u/290978?v=3","gravatar_id":"","url":"https://api.github.com/users/tristanz","html_url":"https://github.com/tristanz","followers_url":"https://api.github.com/users/tristanz/followers","following_url":"https://api.github.com/users/tristanz/following{/other_user}","gists_url":"https://api.github.com/users/tristanz/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanz/subscriptions","organizations_url":"https://api.github.com/users/tristanz/orgs","repos_url":"https://api.github.com/users/tristanz/repos","events_url":"https://api.github.com/users/tristanz/events{/privacy}","received_events_url":"https://api.github.com/users/tristanz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/exp/beginner","name":"exp/beginner","color":"A8DBA8"},{"url":"https://api.github.com/repos/docker/docker/labels/group/windows","name":"group/windows","color":"F6FBFF"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/feature","name":"kind/feature","color":"AAB3AB"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-04-30T02:00:44Z","updated_at":"2015-12-09T15:00:10Z","closed_at":null,"body":"As several people have mentioned (@thaJeztah, @duglin) in #9707, it would be great to be able specify the .dockerignore file using -i/--ignore in conjunction with named dockerfiles.  It is often difficult to use named dockerfiles because the build context becomes too large.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/163281425","html_url":"https://github.com/docker/docker/issues/12886#issuecomment-163281425","issue_url":"https://api.github.com/repos/docker/docker/issues/12886","id":163281425,"user":{"login":"mishak87","id":276500,"avatar_url":"https://avatars.githubusercontent.com/u/276500?v=3","gravatar_id":"","url":"https://api.github.com/users/mishak87","html_url":"https://github.com/mishak87","followers_url":"https://api.github.com/users/mishak87/followers","following_url":"https://api.github.com/users/mishak87/following{/other_user}","gists_url":"https://api.github.com/users/mishak87/gists{/gist_id}","starred_url":"https://api.github.com/users/mishak87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishak87/subscriptions","organizations_url":"https://api.github.com/users/mishak87/orgs","repos_url":"https://api.github.com/users/mishak87/repos","events_url":"https://api.github.com/users/mishak87/events{/privacy}","received_events_url":"https://api.github.com/users/mishak87/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T15:00:10Z","updated_at":"2015-12-09T15:00:10Z","body":"I would like to claim this one along with improvements to [ignore internals](https://github.com/docker/docker/blob/c6c4ae152ad029a8546e127de477b65bc0e05572/builder/dockerignore.go#L27-L28)."}}