{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/golang/issues/194","repository_url":"https://api.github.com/repos/docker-library/golang","labels_url":"https://api.github.com/repos/docker-library/golang/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/golang/issues/194/comments","events_url":"https://api.github.com/repos/docker-library/golang/issues/194/events","html_url":"https://github.com/docker-library/golang/issues/194","id":283457487,"number":194,"title":"build and runtime environment results in a huge image","user":{"login":"kaihendry","id":765871,"avatar_url":"https://avatars3.githubusercontent.com/u/765871?v=4","gravatar_id":"","url":"https://api.github.com/users/kaihendry","html_url":"https://github.com/kaihendry","followers_url":"https://api.github.com/users/kaihendry/followers","following_url":"https://api.github.com/users/kaihendry/following{/other_user}","gists_url":"https://api.github.com/users/kaihendry/gists{/gist_id}","starred_url":"https://api.github.com/users/kaihendry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaihendry/subscriptions","organizations_url":"https://api.github.com/users/kaihendry/orgs","repos_url":"https://api.github.com/users/kaihendry/repos","events_url":"https://api.github.com/users/kaihendry/events{/privacy}","received_events_url":"https://api.github.com/users/kaihendry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-20T06:00:23Z","updated_at":"2017-12-20T08:03:12Z","closed_at":null,"author_association":"NONE","body":"I moved my lambda function to a Dockerfile and I'm stunned how large the resulting 400M image is:\r\n\r\n```\r\nFROM golang:alpine\r\n\r\nRUN apk --no-cache add git\r\n\r\nADD . /go/src/github.com/Example/pls3\r\nWORKDIR /go/src/github.com/Example/pls3/cmd/pls3\r\nRUN go get && go install -v\r\n\r\nARG COMMIT\r\nENV COMMIT ${COMMIT}\r\n\r\nENTRYPOINT [\"/go/bin/pls3\"]\r\n```\r\n\r\nI assuming it's because of all the deps. Is there a simpler approach of just packaging the amd64 static binary? Or is there something I am missing?"},"comment":{"url":"https://api.github.com/repos/docker-library/golang/issues/comments/352992622","html_url":"https://github.com/docker-library/golang/issues/194#issuecomment-352992622","issue_url":"https://api.github.com/repos/docker-library/golang/issues/194","id":352992622,"user":{"login":"kaihendry","id":765871,"avatar_url":"https://avatars3.githubusercontent.com/u/765871?v=4","gravatar_id":"","url":"https://api.github.com/users/kaihendry","html_url":"https://github.com/kaihendry","followers_url":"https://api.github.com/users/kaihendry/followers","following_url":"https://api.github.com/users/kaihendry/following{/other_user}","gists_url":"https://api.github.com/users/kaihendry/gists{/gist_id}","starred_url":"https://api.github.com/users/kaihendry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaihendry/subscriptions","organizations_url":"https://api.github.com/users/kaihendry/orgs","repos_url":"https://api.github.com/users/kaihendry/repos","events_url":"https://api.github.com/users/kaihendry/events{/privacy}","received_events_url":"https://api.github.com/users/kaihendry/received_events","type":"User","site_admin":false},"created_at":"2017-12-20T08:03:11Z","updated_at":"2017-12-20T08:03:11Z","author_association":"NONE","body":"Cool! A ~5 megabyte image!\r\n\r\nHowever, I hit this `x509: failed to load system roots and no roots provided, ` when I try http.Get a URL with that. Bit uncertain how to fix this after reading https://github.com/docker-library/golang/issues/96 .. any ideas?\r\n\r\nBtw the `COPY --from=build /go/bin/pls3 /pls3` needed a final argument."}}
{"actor":{"display_login":"kaihendry"}}