René's URL Explorer Experiment


Title: add LDFLAGS for optimizing image size by autoferrit · Pull Request #483 · docker-library/python · GitHub

Open Graph Title: add LDFLAGS for optimizing image size by autoferrit · Pull Request #483 · docker-library/python

X Title: add LDFLAGS for optimizing image size by autoferrit · Pull Request #483 · docker-library/python

Description: Docker Official Image packaging for Python. Contribute to docker-library/python development by creating an account on GitHub.

Open Graph Description: This is based on #448 by @lubo I ran this locally with the change and it worked out well. I build the 3.8-alpine3.11 image (tagging it as just py3 here) and the image size went from 107MB to 78.9MB...

X Description: This is based on #448 by @lubo I ran this locally with the change and it worked out well. I build the 3.8-alpine3.11 image (tagging it as just py3 here) and the image size went from 107MB to 78.9MB...

Opengraph URL: https://github.com/docker-library/python/pull/483

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0114af20-ff1a-69c1-74f9-83b71cf54865
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF4A:61466:E7B9FA:13CE928:6AFE9545
html-safe-nonce39c9dc463739b2d37c9e9a8c7e203b83ccbb7d28f5ad40507485d7c8cb988cfc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjRBOjYxNDY2OkU3QjlGQToxM0NFOTI4OjZBRkU5NTQ1IiwidmlzaXRvcl9pZCI6IjEzODQxODUzNzMzNjk3MzQ0NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca32a5977a4018ad294db42f3151c3e1e923547f03168e190cecdaee3f3fb44ec
hovercard-subject-tagpull_request:417582078
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/docker-library/python/483/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9cfe71b38d8295570723585fb8ba3187abf945f6d73e4312cf8305372914e8ed/docker-library/python/pull/483
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9cfe71b38d8295570723585fb8ba3187abf945f6d73e4312cf8305372914e8ed/docker-library/python/pull/483
og:image:altThis is based on #448 by @lubo I ran this locally with the change and it worked out well. I build the 3.8-alpine3.11 image (tagging it as just py3 here) and the image size went from 107MB to 78.9MB...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameautoferrit
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-cache
go-importgithub.com/docker-library/python git https://github.com/docker-library/python.git
octolytics-dimension-user_id7739233
octolytics-dimension-user_logindocker-library
octolytics-dimension-repository_id21054928
octolytics-dimension-repository_nwodocker-library/python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21054928
octolytics-dimension-repository_network_root_nwodocker-library/python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/docker-library/python/pull/483#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-library%2Fpython%2Fpull%2F483
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-library%2Fpython%2Fpull%2F483
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=docker-library%2Fpython
Reloadhttps://github.com/docker-library/python/pull/483
Reloadhttps://github.com/docker-library/python/pull/483
Reloadhttps://github.com/docker-library/python/pull/483
docker-libraryhttps://github.com/docker-library
pythonhttps://github.com/docker-library/python
Codehttps://github.com/docker-library/python
Issues23 (23)https://github.com/docker-library/python/issues
Pull requests5 (5)https://github.com/docker-library/python/pulls
Discussionshttps://github.com/docker-library/python/discussions
Actionshttps://github.com/docker-library/python/actions
Projectshttps://github.com/docker-library/python/projects
Security and qualityhttps://github.com/docker-library/python/security
Insightshttps://github.com/docker-library/python/insights
https://github.com/docker-library/python
tianonhttps://github.com/tianon
docker-library:masterhttps://github.com/docker-library/python/tree/master
autoferrit:masterhttps://github.com/autoferrit/python-docker/tree/master
Conversationhttps://github.com/docker-library/python/pull/483
Commits2 (2)https://github.com/docker-library/python/pull/483/commits
Checkshttps://github.com/docker-library/python/pull/483/checks
Files changedhttps://github.com/docker-library/python/pull/483/files
add LDFLAGS for optimizing image sizehttps://github.com/docker-library/python/pull/483#top
tianonhttps://github.com/tianon
docker-library:masterhttps://github.com/docker-library/python/tree/master
autoferrit:masterhttps://github.com/autoferrit/python-docker/tree/master
https://github.com/autoferrit
autoferrithttps://github.com/autoferrit
May 13, 2020https://github.com/docker-library/python/pull/483#issue-617717846
#448https://github.com/docker-library/python/issues/448
@lubohttps://github.com/lubo
Please reload this pagehttps://github.com/docker-library/python/pull/483
https://github.com/autoferrit
autoferrithttps://github.com/autoferrit
May 13, 2020 https://github.com/docker-library/python/pull/483#ref-issue-548544224
Size optimizations #448 https://github.com/docker-library/python/issues/448
https://github.com/yosifkit
yosifkithttps://github.com/yosifkit
May 14, 2020https://github.com/docker-library/python/pull/483#issuecomment-628881644
Please reload this pagehttps://github.com/docker-library/python/pull/483
https://github.com/autoferrit
autoferrithttps://github.com/autoferrit
May 15, 2020https://github.com/docker-library/python/pull/483#issuecomment-629454225
Please reload this pagehttps://github.com/docker-library/python/pull/483
https://github.com/yosifkit
yosifkithttps://github.com/yosifkit
May 15, 2020 https://github.com/docker-library/python/pull/483#pullrequestreview-412943683
View reviewed changes https://github.com/docker-library/python/pull/483/files
yosifkithttps://github.com/yosifkit
https://github.com/docker-library/python/pull/483#pullrequestreview-412943683
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/docker-library/python/pull/483
https://github.com/yosifkit
yosifkithttps://github.com/yosifkit
tianonhttps://github.com/tianon
May 15, 2020 20:23https://github.com/docker-library/python/pull/483#event-3342437133
autoferrithttps://github.com/autoferrit
May 19, 2020 10:50https://github.com/docker-library/python/pull/483#commits-pushed-7dc395a
https://github.com/autoferrit
https://github.com/tianon
add LDFLAGS for optimizing image sizehttps://github.com/docker-library/python/pull/483/commits/7dc395a6b9fabce8685009dc385fa98f8a944d5c
7dc395ahttps://github.com/docker-library/python/pull/483/commits/7dc395a6b9fabce8685009dc385fa98f8a944d5c
https://github.com/autoferrit
https://github.com/tianon
also should apply to slim images.https://github.com/docker-library/python/pull/483/commits/6a981ebc3ba38d0668db58813f309e58763438e1
6a981ebhttps://github.com/docker-library/python/pull/483/commits/6a981ebc3ba38d0668db58813f309e58763438e1
https://github.com/tianon
tianonhttps://github.com/tianon
force-pushedhttps://github.com/docker-library/python/compare/c3b89a82cb5acac36b6c5e5a42cc80318641bef0..6a981ebc3ba38d0668db58813f309e58763438e1
c3b89a8https://github.com/docker-library/python/commit/c3b89a82cb5acac36b6c5e5a42cc80318641bef0
6a981ebhttps://github.com/docker-library/python/commit/6a981ebc3ba38d0668db58813f309e58763438e1
Compare https://github.com/docker-library/python/compare/c3b89a82cb5acac36b6c5e5a42cc80318641bef0..6a981ebc3ba38d0668db58813f309e58763438e1
May 19, 2020 17:52https://github.com/docker-library/python/pull/483#event-3353042381
https://github.com/tianon
tianonhttps://github.com/tianon
May 19, 2020https://github.com/docker-library/python/pull/483#issuecomment-630981734
Please reload this pagehttps://github.com/docker-library/python/pull/483
https://github.com/tianon
tianonhttps://github.com/tianon
May 19, 2020https://github.com/docker-library/python/pull/483#issuecomment-631045684
Please reload this pagehttps://github.com/docker-library/python/pull/483
https://github.com/tianon
tianonhttps://github.com/tianon
f83ecbfhttps://github.com/docker-library/python/commit/f83ecbffb29f6b6f26bc235300aadf349719b55c
May 19, 2020https://github.com/docker-library/python/pull/483#event-3353465382
docker-library-bothttps://github.com/docker-library-bot
May 19, 2020 https://github.com/docker-library/python/pull/483#ref-commit-921b4a6
https://github.com/docker-library-bot
Update pythonhttps://github.com/docker-library-bot/official-images/commit/921b4a609fa53b27cc72752606151e78e1b3af68
921b4a6https://github.com/docker-library-bot/official-images/commit/921b4a609fa53b27cc72752606151e78e1b3af68
docker-library/python@f83ecbfhttps://github.com/docker-library/python/commit/f83ecbf
docker-library/python#483https://github.com/docker-library/python/pull/483
docker-library/python@6a981ebhttps://github.com/docker-library/python/commit/6a981eb
docker-library/python@7dc395ahttps://github.com/docker-library/python/commit/7dc395a
https://github.com/tianon
tianonhttps://github.com/tianon
May 20, 2020 https://github.com/docker-library/python/pull/483#ref-pullrequest-621363539
Update python docker-library/official-images#8037 https://github.com/docker-library/official-images/pull/8037
https://github.com/majorgreys
majorgreyshttps://github.com/majorgreys
Aug 3, 2021 https://github.com/docker-library/python/pull/483#ref-pullrequest-959528013
chore(perf): use pyenv to install DataDog/dd-trace-py#2731 https://github.com/DataDog/dd-trace-py/pull/2731
Don't strip debugging symbols in the regular Debian images #693 https://github.com/docker-library/python/pull/693
Debian images no longer ship DWARF debugging symbols #694 https://github.com/docker-library/python/issues/694
Omar290601https://github.com/Omar290601
Aug 27, 2025 https://github.com/docker-library/python/pull/483#ref-commit-3e57d4e
https://github.com/malor
https://github.com/Omar290601
Don't strip debugging symbols in the regular Debian imageshttps://github.com/Omar290601/python/commit/3e57d4e3dc08bd5939ff5214b4e85f21c9cc7e74
3e57d4ehttps://github.com/Omar290601/python/commit/3e57d4e3dc08bd5939ff5214b4e85f21c9cc7e74
docker-library#687https://github.com/docker-library/python/pull/687
docker-library#483https://github.com/docker-library/python/pull/483
docker-library#483https://github.com/docker-library/python/pull/483
https://github.co/hiddenchars
https://github.com/docker-library/python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-library%2Fpython%2Fpull%2F483
https://github.com/yosifkit
yosifkit https://github.com/yosifkit
https://github.com/docker-library/python/pull/483/files/c3b89a82cb5acac36b6c5e5a42cc80318641bef0
https://github.com/tianon
tianon https://github.com/tianon
Please reload this pagehttps://github.com/docker-library/python/pull/483
Please reload this pagehttps://github.com/docker-library/python/pull/483
https://github.com/autoferrit
https://github.com/yosifkit
https://github.com/tianon
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.