{"id":16086174,"url":"https://github.com/zw963/docker_wget_nopain","last_synced_at":"2026-01-19T12:33:04.251Z","repository":{"id":147696275,"uuid":"91781198","full_name":"zw963/docker_wget_nopain","owner":"zw963","description":"Create a wget function in docker, and use it download static compile wget.","archived":false,"fork":false,"pushed_at":"2017-05-19T08:15:06.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T14:11:56.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zw963.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-19T07:58:23.000Z","updated_at":"2017-05-19T07:58:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"bce0a78b-1f70-47d3-8464-3dd34a91b8ff","html_url":"https://github.com/zw963/docker_wget_nopain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zw963/docker_wget_nopain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fdocker_wget_nopain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fdocker_wget_nopain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fdocker_wget_nopain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fdocker_wget_nopain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zw963","download_url":"https://codeload.github.com/zw963/docker_wget_nopain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zw963%2Fdocker_wget_nopain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28567896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T13:10:58.290Z","updated_at":"2026-01-19T12:33:04.236Z","avatar_url":"https://github.com/zw963.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker_wget_nopain\nCreate a wget function in docker, and use it download static compile wget.\n\n\nDoes you use Dockerfile like this:\n\n```Dockerfile\n\n# install wget\nRUN  apt-get update \u0026\u0026 apt-get install -qq -y --no-install-recommends wget \u0026\u0026 rm -rf /var/lib/apt/lists/*\n\n#####################\n\n# do whatever tasks which need wget to download somethings ..\n\n######################\n\n# remove wget\nRUN apt-get purge -y --auto-remove wget\n\n```\n\nThis is not the correct way to do this.\nIf run `docker history your_image``, you will see\n\n```sh\n...\n41753cb4a6be        4 hours ago         /bin/sh -c apt-get purge -y --auto-remove ...   445 kB              \n1eae68198132        17 hours ago        /bin/sh -c apt-get update \u0026\u0026 apt-get insta...   34.4 MB\n...\n```\n\nBecause you `install wget` and `remove wget` in seperate step, you got about `34MB` unuseful data\ninto docker layout.\n\nAnother way to do this is, in every step you need wget, write as followings\n\n```dockerfile\nRUN apt-get update \u0026\u0026 apt-get install -qq -y --no-install-recommends wget \u0026\u0026 rm -rf /var/lib/apt/lists/* \u0026\u0026 \\\n         do-what-ever-process-need-wget \u0026\u0026 \\\n         RUN apt-get purge -y --auto-remove wget\n```\n\nThis method exist too much redundant code to process wget, not perfect.\n\n\n## Why use bash to download a static compiled wget, and just use it?\n\nThis project is the attempt to do this.\n\n\n\n\n\n\n\n\n\n\n\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fdocker_wget_nopain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzw963%2Fdocker_wget_nopain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzw963%2Fdocker_wget_nopain/lists"}