{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/python/issues/71","labels_url":"https://api.github.com/repos/docker-library/python/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/python/issues/71/comments","events_url":"https://api.github.com/repos/docker-library/python/issues/71/events","html_url":"https://github.com/docker-library/python/pull/71","id":122972354,"number":71,"title":"[RFC] Add 3.5/alpine variant","user":{"login":"ncopa","id":66357,"avatar_url":"https://avatars.githubusercontent.com/u/66357?v=3","gravatar_id":"","url":"https://api.github.com/users/ncopa","html_url":"https://github.com/ncopa","followers_url":"https://api.github.com/users/ncopa/followers","following_url":"https://api.github.com/users/ncopa/following{/other_user}","gists_url":"https://api.github.com/users/ncopa/gists{/gist_id}","starred_url":"https://api.github.com/users/ncopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncopa/subscriptions","organizations_url":"https://api.github.com/users/ncopa/orgs","repos_url":"https://api.github.com/users/ncopa/repos","events_url":"https://api.github.com/users/ncopa/events{/privacy}","received_events_url":"https://api.github.com/users/ncopa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-18T15:51:08Z","updated_at":"2015-12-18T21:38:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker-library/python/pulls/71","html_url":"https://github.com/docker-library/python/pull/71","diff_url":"https://github.com/docker-library/python/pull/71.diff","patch_url":"https://github.com/docker-library/python/pull/71.patch"},"body":"This is an alpine linux variant of python 3.5.\r\n\r\nI have a few questions and comments:\r\n\r\n- do we call it \"alpine\"? or \"musl\"? or something else?\r\n- i remove the gnupg tool, which the debian variant(s) does not do. it this ok?\r\n- I currently base this on alpine:edge, but we probably want to use alpine:latest (after v3.3 is released).\r\n- I use scanelf to identify the runtime deps. This is to protect those from being uninstalled by accident. Do we want this extra complexity?\r\n\r\n```\r\n/ # apk info -R .python-rundeps\r\nWARNING: Ignoring APKINDEX.ed54c246.tar.gz: No such file or directory\r\n.python-rundeps-0 depends on:\r\nso:libbz2.so.1\r\nso:libc.musl-x86_64.so.1\r\nso:libcrypto.so.1.0.0\r\nso:libncursesw.so.6\r\nso:libpanelw.so.6\r\nso:libsqlite3.so.0\r\nso:libssl.so.1.0.0\r\nso:libz.so.1\r\n\r\n/ # apk del zlib\r\nWARNING: Ignoring APKINDEX.ed54c246.tar.gz: No such file or directory\r\nWorld updated, but the following packages are not removed due to:\r\n  zlib: libcrypto1.0 apk-tools alpine-base .python-rundeps libssl1.0\r\n\r\nOK: 14 MiB in 25 packages\r\n/ # \r\n```"},"comment":{"url":"https://api.github.com/repos/docker-library/python/issues/comments/165903138","html_url":"https://github.com/docker-library/python/pull/71#issuecomment-165903138","issue_url":"https://api.github.com/repos/docker-library/python/issues/71","id":165903138,"user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T21:38:12Z","updated_at":"2015-12-18T21:38:12Z","body":"Nice start! :+1:\r\n\r\n1. definitely `alpine` (since we've already set that precedent, and I think it has more meaning and conveys more useful knowledge in general to the end-users of the image than `musl` does)\r\n2. I'm totally all for removing `gpg` after we've done our verification (and even moving the install, key fetch, and remove all into that same build step to make sure we don't pay the cost of space unnecessarily) -- just leave an `ENV GPG_KEY 97FC712E4C024BBEA48A61ED3A5CA953F73C700D` where the current `--recv-key` line is, since that's something we'll need to mutate for different Python versions\r\n3. yeah, we definitely don't want to have an official image targeting `alpine:edge` for the same reason we don't really have any targeting `debian:sid` :smile: -- any particular bits in Alpine 3.3 that this requires which make 3.2 not suitable?\r\n4. IMO, `scanelf` is a brilliant and effective solution; let's roll with it! :+1:\r\n\r\nBTW, if you add `- VERSION=3.5 VARIANT=alpine` in the `env:` block of `.travis.yml`, we'll get this `Dockerfile` actually being built in Travis. :smile:"}}