{"id":16143565,"url":"https://github.com/lhns/docker-cleanimage","last_synced_at":"2025-03-18T17:31:12.830Z","repository":{"id":70595896,"uuid":"217314274","full_name":"lhns/docker-cleanimage","owner":"lhns","description":"A tool for cleaning up temp and cache directories to make docker images smaller","archived":false,"fork":false,"pushed_at":"2023-07-26T16:28:21.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T11:12:41.769Z","etag":null,"topics":["build","clean","cleanimage","docker","image","smaller"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/lhns.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":"2019-10-24T14:05:41.000Z","updated_at":"2024-10-18T04:16:50.000Z","dependencies_parsed_at":"2024-10-27T18:41:07.770Z","dependency_job_id":null,"html_url":"https://github.com/lhns/docker-cleanimage","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhns%2Fdocker-cleanimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhns%2Fdocker-cleanimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhns%2Fdocker-cleanimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhns%2Fdocker-cleanimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lhns","download_url":"https://codeload.github.com/lhns/docker-cleanimage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243941109,"owners_count":20372185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["build","clean","cleanimage","docker","image","smaller"],"created_at":"2024-10-10T00:09:34.294Z","updated_at":"2025-03-18T17:31:12.825Z","avatar_url":"https://github.com/lhns.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-cleanimage\n### A tool for cleaning up temp and cache directories to make docker images smaller\nInstallation procedures can produce a lot of logs and other cached files. This script attemts to clean up these files to make docker images a lot smaller.\n\n## Usage in Dockerfile\n\n### Download and install\n```Dockerfile\nENV CLEANIMAGE_VERSION 2.0\nENV CLEANIMAGE_URL https://raw.githubusercontent.com/LolHens/docker-cleanimage/$CLEANIMAGE_VERSION/cleanimage\n\nADD [\"$CLEANIMAGE_URL\", \"/usr/local/bin/\"]\nRUN chmod +x \"/usr/local/bin/cleanimage\"\n```\n\n### Execute after each layer where necessary\n```Dockerfile\nRUN apt-get install -y \\\n      python3 \\\n \u0026\u0026 cleanimage\n```\n\n## Supported Applications\n- apt\n- yum\n- apk\n- pip\n\n## Commands\n- apt-get -y --purge autoremove\n- apt-get -y clean\n- yum clean all\n\n## Directories\n- /tmp/*\n- /var/cache/apk/*\n- /var/tmp/*\n- /var/lib/apt/lists/*\n- /var/log/alternatives.log\n- /var/log/apt/\n- /var/log/bootstrap.log\n- /var/log/btmp\n- /var/log/dpkg.log\n- /var/log/faillog\n- /var/log/fsck/\n- /var/log/lastlog\n- /var/log/wtmp\n- ~/.cache/pip\n- Files in /var/cache/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhns%2Fdocker-cleanimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flhns%2Fdocker-cleanimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhns%2Fdocker-cleanimage/lists"}