{"action":"created","issue":{"url":"https://api.github.com/repos/carlossg/docker-maven/issues/2","labels_url":"https://api.github.com/repos/carlossg/docker-maven/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/carlossg/docker-maven/issues/2/comments","events_url":"https://api.github.com/repos/carlossg/docker-maven/issues/2/events","html_url":"https://github.com/carlossg/docker-maven/issues/2","id":53400869,"number":2,"title":"How to avoid download of jar deps at every image building","user":{"login":"bitliner","id":1301838,"avatar_url":"https://avatars.githubusercontent.com/u/1301838?v=3","gravatar_id":"","url":"https://api.github.com/users/bitliner","html_url":"https://github.com/bitliner","followers_url":"https://api.github.com/users/bitliner/followers","following_url":"https://api.github.com/users/bitliner/following{/other_user}","gists_url":"https://api.github.com/users/bitliner/gists{/gist_id}","starred_url":"https://api.github.com/users/bitliner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitliner/subscriptions","organizations_url":"https://api.github.com/users/bitliner/orgs","repos_url":"https://api.github.com/users/bitliner/repos","events_url":"https://api.github.com/users/bitliner/events{/privacy}","received_events_url":"https://api.github.com/users/bitliner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-05T14:27:32Z","updated_at":"2015-07-09T16:28:53Z","closed_at":null,"body":"Every time the code of java classes in my maven project changes, building an image requires to download again all the java dependencies from maven repositories.\r\n\r\nI am trying to avoid that using a data volume, specifically I run `docker run -v \"$(pwd)\":/root/.m2` but of course this command is not about building an image, so it does not help. \r\n\r\nDocker does not support data volumes when you build an image.\r\n\r\nIs there any other way you suggest to speed up the image building process avoiding the download of all the java dependencies?"},"comment":{"url":"https://api.github.com/repos/carlossg/docker-maven/issues/comments/120059314","html_url":"https://github.com/carlossg/docker-maven/issues/2#issuecomment-120059314","issue_url":"https://api.github.com/repos/carlossg/docker-maven/issues/2","id":120059314,"user":{"login":"carlossg","id":23651,"avatar_url":"https://avatars.githubusercontent.com/u/23651?v=3","gravatar_id":"","url":"https://api.github.com/users/carlossg","html_url":"https://github.com/carlossg","followers_url":"https://api.github.com/users/carlossg/followers","following_url":"https://api.github.com/users/carlossg/following{/other_user}","gists_url":"https://api.github.com/users/carlossg/gists{/gist_id}","starred_url":"https://api.github.com/users/carlossg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlossg/subscriptions","organizations_url":"https://api.github.com/users/carlossg/orgs","repos_url":"https://api.github.com/users/carlossg/repos","events_url":"https://api.github.com/users/carlossg/events{/privacy}","received_events_url":"https://api.github.com/users/carlossg/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T16:28:53Z","updated_at":"2015-07-09T16:28:53Z","body":"so how do you start containers?? those are docker API options too"}}