{"id":23380781,"url":"https://github.com/softonic/docker-node-prune","last_synced_at":"2026-04-29T17:06:21.861Z","repository":{"id":66182945,"uuid":"266758351","full_name":"softonic/docker-node-prune","owner":"softonic","description":"Docker image for remove unnecessary files from node_modules (.md, .ts, ...)","archived":false,"fork":false,"pushed_at":"2020-05-25T12:11:23.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-14T04:51:18.921Z","etag":null,"topics":["docker-image","node-prune"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/softonic/node-prune","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softonic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-05-25T11:10:49.000Z","updated_at":"2024-03-31T04:57:38.000Z","dependencies_parsed_at":"2023-02-23T01:15:41.336Z","dependency_job_id":null,"html_url":"https://github.com/softonic/docker-node-prune","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fdocker-node-prune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fdocker-node-prune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fdocker-node-prune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softonic%2Fdocker-node-prune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softonic","download_url":"https://codeload.github.com/softonic/docker-node-prune/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801195,"owners_count":20998331,"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":["docker-image","node-prune"],"created_at":"2024-12-21T20:18:34.431Z","updated_at":"2026-04-29T17:06:16.824Z","avatar_url":"https://github.com/softonic.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Prune\n\nThis creates an image with the node-prune binary on it.\nThe source code is obtained from the repository: https://github.com/tj/node-prune\n\n# Usage\n\nYou can clean your `node_modules` directory with the next command:\n\n```shell script\ndocker run --rm --name node-prune \\\n  -v $PWD:/app \\\n  --workdir=/app \\\n  softonic/node-prune:latest \\\n  -verbose /app/node_modules\n```\nOr you can use it in a stage of your `Dockerfile`'s with an specific stage like:\n\n```dockerfile\n...\nFROM softonic/node-prune:latest AS pruner\n\nCOPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules\n\nRUN node-prune /usr/src/app/node_modules\n\nFROM builder AS production\n\nCOPY --from=pruner /usr/src/app/node_modules /usr/src/app/node_modules\n...\n```\n\n# Build\n\nThe source code is automatically built by Docker Hub, but if you want to build it locally just execute:\n```shell script\nVERSION=latest docker build -t softonic/node-prune:$VERSION .\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonic%2Fdocker-node-prune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftonic%2Fdocker-node-prune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftonic%2Fdocker-node-prune/lists"}