{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/2224","labels_url":"https://api.github.com/repos/docker/docker/issues/2224/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/2224/comments","events_url":"https://api.github.com/repos/docker/docker/issues/2224/events","html_url":"https://github.com/docker/docker/issues/2224","id":21016225,"number":2224,"title":"Allow files and paths to be ignored when uploading context","user":{"login":"jellybob","id":362,"avatar_url":"https://avatars.githubusercontent.com/u/362?v=3","gravatar_id":"","url":"https://api.github.com/users/jellybob","html_url":"https://github.com/jellybob","followers_url":"https://api.github.com/users/jellybob/followers","following_url":"https://api.github.com/users/jellybob/following{/other_user}","gists_url":"https://api.github.com/users/jellybob/gists{/gist_id}","starred_url":"https://api.github.com/users/jellybob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jellybob/subscriptions","organizations_url":"https://api.github.com/users/jellybob/orgs","repos_url":"https://api.github.com/users/jellybob/repos","events_url":"https://api.github.com/users/jellybob/events{/privacy}","received_events_url":"https://api.github.com/users/jellybob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":76,"created_at":"2013-10-15T13:32:51Z","updated_at":"2015-05-20T20:48:15Z","closed_at":"2014-06-27T01:00:44Z","body":"I'm attempting to Dockerize a fairly large Rails application, with the intent that during development I can just run `docker build` locally, while for deployment the CI server will do so.\r\n\r\nIn either case though it currently picks up things like the `log` directory, which can grow to several gigabytes of large files which I'm never going to want included in an image.\r\n\r\nIs it possible to tell Docker to ignore that directory when uploading the build context? If not, what would be involved in making it happen? I've never used Go, but given a pointer in the right direction I'm happy to give it a shot."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/104033233","html_url":"https://github.com/docker/docker/issues/2224#issuecomment-104033233","issue_url":"https://api.github.com/repos/docker/docker/issues/2224","id":104033233,"user":{"login":"synotna","id":3313126,"avatar_url":"https://avatars.githubusercontent.com/u/3313126?v=3","gravatar_id":"","url":"https://api.github.com/users/synotna","html_url":"https://github.com/synotna","followers_url":"https://api.github.com/users/synotna/followers","following_url":"https://api.github.com/users/synotna/following{/other_user}","gists_url":"https://api.github.com/users/synotna/gists{/gist_id}","starred_url":"https://api.github.com/users/synotna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synotna/subscriptions","organizations_url":"https://api.github.com/users/synotna/orgs","repos_url":"https://api.github.com/users/synotna/repos","events_url":"https://api.github.com/users/synotna/events{/privacy}","received_events_url":"https://api.github.com/users/synotna/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T20:48:15Z","updated_at":"2015-05-20T20:48:15Z","body":"? My point is, .dockerignore is not as effective as .gitignore as it does not recurse subdirectories\r\n\r\nThe .dockerignore file only ignored one level of pyc file, .gitignore ignored all levels"}}