{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/salrashid123/squid_proxy/pulls/4","id":178013064,"html_url":"https://github.com/salrashid123/squid_proxy/pull/4","diff_url":"https://github.com/salrashid123/squid_proxy/pull/4.diff","patch_url":"https://github.com/salrashid123/squid_proxy/pull/4.patch","issue_url":"https://api.github.com/repos/salrashid123/squid_proxy/issues/4","number":4,"state":"closed","locked":false,"title":"Shrink Image Size","user":{"login":"stevesbrain","id":6745111,"avatar_url":"https://avatars0.githubusercontent.com/u/6745111?v=4","gravatar_id":"","url":"https://api.github.com/users/stevesbrain","html_url":"https://github.com/stevesbrain","followers_url":"https://api.github.com/users/stevesbrain/followers","following_url":"https://api.github.com/users/stevesbrain/following{/other_user}","gists_url":"https://api.github.com/users/stevesbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/stevesbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevesbrain/subscriptions","organizations_url":"https://api.github.com/users/stevesbrain/orgs","repos_url":"https://api.github.com/users/stevesbrain/repos","events_url":"https://api.github.com/users/stevesbrain/events{/privacy}","received_events_url":"https://api.github.com/users/stevesbrain/received_events","type":"User","site_admin":false},"body":"The main issue was that source files were left behind after building. Due to how docker handles images (snapshots after each command/line which work as \"layers\") I had to combine the wget, extract, building, and remove \"RUN\" line into one \"layer\". I've made this as legible as possible still. This is, last I checked, still docker recommended best practice for image size. Image ID `c75c954c35db` is a fresh build straight from source, which confirms same size as your hub image. Image `0813f7cbdfd0` is a build of https://github.com/salrashid123/squid_proxy/commit/1eb6fa6b3913ad740d0ad0832bf902438718751e and confirms it's a little less than 1/3rd of the size, but still fully functional (in as far as I'm aware/have tested). \r\n\r\n```\r\ncore@coreos-s-2vcpu-4gb-sgp1-01 ~/squid_proxy $ docker images\r\nREPOSITORY                TAG                 IMAGE ID            CREATED             SIZE\r\n<none>                    <none>              0813f7cbdfd0        12 minutes ago      618MB\r\n<none>                    <none>              c75c954c35db        40 minutes ago      1.98GB\r\nsalrashid123/squidproxy   latest              838f9731cb47        2 days ago          1.98GB\r\n```","created_at":"2018-03-28T11:49:38Z","updated_at":"2018-03-28T16:52:37Z","closed_at":"2018-03-28T16:52:37Z","merged_at":"2018-03-28T16:52:37Z","merge_commit_sha":"37ed9b152769d1fcc326182af0ab515091855dbd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/salrashid123/squid_proxy/pulls/4/commits","review_comments_url":"https://api.github.com/repos/salrashid123/squid_proxy/pulls/4/comments","review_comment_url":"https://api.github.com/repos/salrashid123/squid_proxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/salrashid123/squid_proxy/issues/4/comments","statuses_url":"https://api.github.com/repos/salrashid123/squid_proxy/statuses/1eb6fa6b3913ad740d0ad0832bf902438718751e","head":{"label":"stevesbrain:shrink-image","ref":"shrink-image","sha":"1eb6fa6b3913ad740d0ad0832bf902438718751e","user":{"login":"stevesbrain","id":6745111,"avatar_url":"https://avatars0.githubusercontent.com/u/6745111?v=4","gravatar_id":"","url":"https://api.github.com/users/stevesbrain","html_url":"https://github.com/stevesbrain","followers_url":"https://api.github.com/users/stevesbrain/followers","following_url":"https://api.github.com/users/stevesbrain/following{/other_user}","gists_url":"https://api.github.com/users/stevesbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/stevesbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevesbrain/subscriptions","organizations_url":"https://api.github.com/users/stevesbrain/orgs","repos_url":"https://api.github.com/users/stevesbrain/repos","events_url":"https://api.github.com/users/stevesbrain/events{/privacy}","received_events_url":"https://api.github.com/users/stevesbrain/received_events","type":"User","site_admin":false},"repo":{"id":125847253,"name":"squid_proxy","full_name":"stevesbrain/squid_proxy","owner":{"login":"stevesbrain","id":6745111,"avatar_url":"https://avatars0.githubusercontent.com/u/6745111?v=4","gravatar_id":"","url":"https://api.github.com/users/stevesbrain","html_url":"https://github.com/stevesbrain","followers_url":"https://api.github.com/users/stevesbrain/followers","following_url":"https://api.github.com/users/stevesbrain/following{/other_user}","gists_url":"https://api.github.com/users/stevesbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/stevesbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevesbrain/subscriptions","organizations_url":"https://api.github.com/users/stevesbrain/orgs","repos_url":"https://api.github.com/users/stevesbrain/repos","events_url":"https://api.github.com/users/stevesbrain/events{/privacy}","received_events_url":"https://api.github.com/users/stevesbrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevesbrain/squid_proxy","description":"Multi-mode Squid Proxy container running SSL intercept","fork":true,"url":"https://api.github.com/repos/stevesbrain/squid_proxy","forks_url":"https://api.github.com/repos/stevesbrain/squid_proxy/forks","keys_url":"https://api.github.com/repos/stevesbrain/squid_proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevesbrain/squid_proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevesbrain/squid_proxy/teams","hooks_url":"https://api.github.com/repos/stevesbrain/squid_proxy/hooks","issue_events_url":"https://api.github.com/repos/stevesbrain/squid_proxy/issues/events{/number}","events_url":"https://api.github.com/repos/stevesbrain/squid_proxy/events","assignees_url":"https://api.github.com/repos/stevesbrain/squid_proxy/assignees{/user}","branches_url":"https://api.github.com/repos/stevesbrain/squid_proxy/branches{/branch}","tags_url":"https://api.github.com/repos/stevesbrain/squid_proxy/tags","blobs_url":"https://api.github.com/repos/stevesbrain/squid_proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevesbrain/squid_proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevesbrain/squid_proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevesbrain/squid_proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevesbrain/squid_proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/stevesbrain/squid_proxy/languages","stargazers_url":"https://api.github.com/repos/stevesbrain/squid_proxy/stargazers","contributors_url":"https://api.github.com/repos/stevesbrain/squid_proxy/contributors","subscribers_url":"https://api.github.com/repos/stevesbrain/squid_proxy/subscribers","subscription_url":"https://api.github.com/repos/stevesbrain/squid_proxy/subscription","commits_url":"https://api.github.com/repos/stevesbrain/squid_proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevesbrain/squid_proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevesbrain/squid_proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevesbrain/squid_proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevesbrain/squid_proxy/contents/{+path}","compare_url":"https://api.github.com/repos/stevesbrain/squid_proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevesbrain/squid_proxy/merges","archive_url":"https://api.github.com/repos/stevesbrain/squid_proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevesbrain/squid_proxy/downloads","issues_url":"https://api.github.com/repos/stevesbrain/squid_proxy/issues{/number}","pulls_url":"https://api.github.com/repos/stevesbrain/squid_proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/stevesbrain/squid_proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/stevesbrain/squid_proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevesbrain/squid_proxy/labels{/name}","releases_url":"https://api.github.com/repos/stevesbrain/squid_proxy/releases{/id}","deployments_url":"https://api.github.com/repos/stevesbrain/squid_proxy/deployments","created_at":"2018-03-19T11:27:39Z","updated_at":"2018-03-28T10:08:46Z","pushed_at":"2018-03-28T11:04:12Z","git_url":"git://github.com/stevesbrain/squid_proxy.git","ssh_url":"git@github.com:stevesbrain/squid_proxy.git","clone_url":"https://github.com/stevesbrain/squid_proxy.git","svn_url":"https://github.com/stevesbrain/squid_proxy","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"salrashid123:master","ref":"master","sha":"bd33e28930af7cedf1a1f9ad5517d4a355b45dc8","user":{"login":"salrashid123","id":11149054,"avatar_url":"https://avatars1.githubusercontent.com/u/11149054?v=4","gravatar_id":"","url":"https://api.github.com/users/salrashid123","html_url":"https://github.com/salrashid123","followers_url":"https://api.github.com/users/salrashid123/followers","following_url":"https://api.github.com/users/salrashid123/following{/other_user}","gists_url":"https://api.github.com/users/salrashid123/gists{/gist_id}","starred_url":"https://api.github.com/users/salrashid123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salrashid123/subscriptions","organizations_url":"https://api.github.com/users/salrashid123/orgs","repos_url":"https://api.github.com/users/salrashid123/repos","events_url":"https://api.github.com/users/salrashid123/events{/privacy}","received_events_url":"https://api.github.com/users/salrashid123/received_events","type":"User","site_admin":false},"repo":{"id":102814898,"name":"squid_proxy","full_name":"salrashid123/squid_proxy","owner":{"login":"salrashid123","id":11149054,"avatar_url":"https://avatars1.githubusercontent.com/u/11149054?v=4","gravatar_id":"","url":"https://api.github.com/users/salrashid123","html_url":"https://github.com/salrashid123","followers_url":"https://api.github.com/users/salrashid123/followers","following_url":"https://api.github.com/users/salrashid123/following{/other_user}","gists_url":"https://api.github.com/users/salrashid123/gists{/gist_id}","starred_url":"https://api.github.com/users/salrashid123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salrashid123/subscriptions","organizations_url":"https://api.github.com/users/salrashid123/orgs","repos_url":"https://api.github.com/users/salrashid123/repos","events_url":"https://api.github.com/users/salrashid123/events{/privacy}","received_events_url":"https://api.github.com/users/salrashid123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/salrashid123/squid_proxy","description":"Multi-mode Squid Proxy container running SSL intercept","fork":false,"url":"https://api.github.com/repos/salrashid123/squid_proxy","forks_url":"https://api.github.com/repos/salrashid123/squid_proxy/forks","keys_url":"https://api.github.com/repos/salrashid123/squid_proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salrashid123/squid_proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salrashid123/squid_proxy/teams","hooks_url":"https://api.github.com/repos/salrashid123/squid_proxy/hooks","issue_events_url":"https://api.github.com/repos/salrashid123/squid_proxy/issues/events{/number}","events_url":"https://api.github.com/repos/salrashid123/squid_proxy/events","assignees_url":"https://api.github.com/repos/salrashid123/squid_proxy/assignees{/user}","branches_url":"https://api.github.com/repos/salrashid123/squid_proxy/branches{/branch}","tags_url":"https://api.github.com/repos/salrashid123/squid_proxy/tags","blobs_url":"https://api.github.com/repos/salrashid123/squid_proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salrashid123/squid_proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salrashid123/squid_proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/salrashid123/squid_proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salrashid123/squid_proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/salrashid123/squid_proxy/languages","stargazers_url":"https://api.github.com/repos/salrashid123/squid_proxy/stargazers","contributors_url":"https://api.github.com/repos/salrashid123/squid_proxy/contributors","subscribers_url":"https://api.github.com/repos/salrashid123/squid_proxy/subscribers","subscription_url":"https://api.github.com/repos/salrashid123/squid_proxy/subscription","commits_url":"https://api.github.com/repos/salrashid123/squid_proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/salrashid123/squid_proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/salrashid123/squid_proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/salrashid123/squid_proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/salrashid123/squid_proxy/contents/{+path}","compare_url":"https://api.github.com/repos/salrashid123/squid_proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salrashid123/squid_proxy/merges","archive_url":"https://api.github.com/repos/salrashid123/squid_proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salrashid123/squid_proxy/downloads","issues_url":"https://api.github.com/repos/salrashid123/squid_proxy/issues{/number}","pulls_url":"https://api.github.com/repos/salrashid123/squid_proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/salrashid123/squid_proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/salrashid123/squid_proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salrashid123/squid_proxy/labels{/name}","releases_url":"https://api.github.com/repos/salrashid123/squid_proxy/releases{/id}","deployments_url":"https://api.github.com/repos/salrashid123/squid_proxy/deployments","created_at":"2017-09-08T03:48:21Z","updated_at":"2018-03-26T02:51:04Z","pushed_at":"2018-03-28T16:52:37Z","git_url":"git://github.com/salrashid123/squid_proxy.git","ssh_url":"git@github.com:salrashid123/squid_proxy.git","clone_url":"https://github.com/salrashid123/squid_proxy.git","svn_url":"https://github.com/salrashid123/squid_proxy","homepage":null,"size":119,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":2,"open_issues":0,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/salrashid123/squid_proxy/pulls/4"},"html":{"href":"https://github.com/salrashid123/squid_proxy/pull/4"},"issue":{"href":"https://api.github.com/repos/salrashid123/squid_proxy/issues/4"},"comments":{"href":"https://api.github.com/repos/salrashid123/squid_proxy/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/salrashid123/squid_proxy/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/salrashid123/squid_proxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/salrashid123/squid_proxy/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/salrashid123/squid_proxy/statuses/1eb6fa6b3913ad740d0ad0832bf902438718751e"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"salrashid123","id":11149054,"avatar_url":"https://avatars1.githubusercontent.com/u/11149054?v=4","gravatar_id":"","url":"https://api.github.com/users/salrashid123","html_url":"https://github.com/salrashid123","followers_url":"https://api.github.com/users/salrashid123/followers","following_url":"https://api.github.com/users/salrashid123/following{/other_user}","gists_url":"https://api.github.com/users/salrashid123/gists{/gist_id}","starred_url":"https://api.github.com/users/salrashid123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salrashid123/subscriptions","organizations_url":"https://api.github.com/users/salrashid123/orgs","repos_url":"https://api.github.com/users/salrashid123/repos","events_url":"https://api.github.com/users/salrashid123/events{/privacy}","received_events_url":"https://api.github.com/users/salrashid123/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":8,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"salrashid123"}}