{"id":15687914,"url":"https://github.com/orisano/minid","last_synced_at":"2025-05-01T00:01:43.349Z","repository":{"id":57490238,"uuid":"139247609","full_name":"orisano/minid","owner":"orisano","description":" minid is Dockerfile minifier for reducing the number of layers.","archived":false,"fork":false,"pushed_at":"2024-04-02T11:53:55.000Z","size":790,"stargazers_count":51,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-20T14:45:54.991Z","etag":null,"topics":["cli","docker","golang","minify"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orisano.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":"2018-06-30T12:27:16.000Z","updated_at":"2023-08-25T09:39:45.000Z","dependencies_parsed_at":"2024-06-20T14:04:33.066Z","dependency_job_id":"3361e4d8-8d16-477c-bb74-46cd1d0b8f04","html_url":"https://github.com/orisano/minid","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/orisano%2Fminid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fminid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fminid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fminid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/minid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251801181,"owners_count":21645968,"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":["cli","docker","golang","minify"],"created_at":"2024-10-03T17:51:33.305Z","updated_at":"2025-05-01T00:01:43.309Z","avatar_url":"https://github.com/orisano.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minid\n\n[![Build Status](https://github.com/orisano/minid/workflows/test/badge.svg)](https://github.com/orisano/minid/actions?query=workflow%3Atest)\n\nminid is Dockerfile minifier for reducing the number of layers.\n\n## Features\n* concatenate RUN command\n* concatenate ENV command\n* concatenate LABEL command\n* concatenate COPY, ADD command\n* ...\n\n## Installation\n```bash\ngo get -u github.com/orisano/minid\n```\n\n## How to use\n```bash\n$ cat Dockerfile # 8 layers\nFROM golang:1.10-alpine3.8 AS build\n\nENV DEP_VERSION 0.4.1\n\nWORKDIR /go/src/github.com/orisano/gobase\n\nRUN apk add --no-cache git make mailcap tzdata\nRUN wget -O /usr/local/bin/dep https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 \u0026\u0026 chmod +x /usr/local/bin/dep\nRUN wget -O /usr/local/bin/depinst https://github.com/orisano/depinst/releases/download/1.0.1/depinst-linux-amd64 \u0026\u0026 chmod +x /usr/local/bin/depinst\n\nCOPY Gopkg.lock Gopkg.toml ./\nRUN dep ensure -vendor-only\n\nENV CGO_ENABLED=0\nENV GO_LDFLAGS=\"-extldflags='-static'\"\nRUN go build -i ./vendor/...\n\nCOPY . .\nRUN make build\n```\n```bash\n$ minid # 6 layers\nFROM golang:1.10-alpine3.8 AS build\nENV DEP_VERSION=0.4.1\nWORKDIR /go/src/github.com/orisano/gobase\nRUN apk add --no-cache git make mailcap tzdata \u0026\u0026 wget -O /usr/local/bin/dep https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 \u0026\u0026 chmod +x /usr/local/bin/dep \u0026\u0026 wget -O /usr/local/bin/depinst https://github.com/orisano/depinst/releases/download/1.0.1/depinst-linux-amd64 \u0026\u0026 chmod +x /usr/local/bin/depinst\nCOPY Gopkg.lock Gopkg.toml ./\nRUN dep ensure -vendor-only\nENV CGO_ENABLED=0 GO_LDFLAGS=\"-extldflags='-static'\"\nRUN go build -i ./vendor/...\nCOPY . .\nRUN make build\n```\n```bash\n$ minid | docker build -f - .\n```\n \n or\n \n ```bash\n $ minid build .\n ```\n\n## Author\nNao Yonashiro (@orisano)\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fminid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fminid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fminid/lists"}