{"action":"closed","issue":{"url":"https://api.github.com/repos/wso2/dockerfiles/issues/3","repository_url":"https://api.github.com/repos/wso2/dockerfiles","labels_url":"https://api.github.com/repos/wso2/dockerfiles/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/wso2/dockerfiles/issues/3/comments","events_url":"https://api.github.com/repos/wso2/dockerfiles/issues/3/events","html_url":"https://github.com/wso2/dockerfiles/issues/3","id":139994653,"number":3,"title":"Improve container size","user":{"login":"gordillo-ramon","id":8056605,"avatar_url":"https://avatars.githubusercontent.com/u/8056605?v=3","gravatar_id":"","url":"https://api.github.com/users/gordillo-ramon","html_url":"https://github.com/gordillo-ramon","followers_url":"https://api.github.com/users/gordillo-ramon/followers","following_url":"https://api.github.com/users/gordillo-ramon/following{/other_user}","gists_url":"https://api.github.com/users/gordillo-ramon/gists{/gist_id}","starred_url":"https://api.github.com/users/gordillo-ramon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordillo-ramon/subscriptions","organizations_url":"https://api.github.com/users/gordillo-ramon/orgs","repos_url":"https://api.github.com/users/gordillo-ramon/repos","events_url":"https://api.github.com/users/gordillo-ramon/events{/privacy}","received_events_url":"https://api.github.com/users/gordillo-ramon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-10T20:03:50Z","updated_at":"2016-03-29T09:14:13Z","closed_at":"2016-03-29T09:14:13Z","body":"Some installation files (jdk, wso2 package) are added to the container, and then installed in different steps.\r\n\r\nThat makes the size almost twice bigger. Example:\r\n\r\n```\r\n[developer@wso2sandbox]$ docker history wso2/am-1.10.0:1.0.0\r\nIMAGE               CREATED              CREATED BY                                      SIZE                COMMENT\r\n...\r\n3e00ff40662f        About a minute ago   /bin/sh -c puppet apply -e \"include ${WSO2_SE   896.4 MB        \r\n...\r\n73f5185743d1        4 minutes ago        /bin/sh -c #(nop) COPY dir:3b98d19970037f581d   581.4 MB            \r\n...\r\n```\r\n\r\nIs it possible to set up something like an http_server, and run in the same command download/install/remove? With that approach, the installation files will not be persisted in the layer."}}