{"id":13707146,"url":"https://github.com/bergkvist/includeimage","last_synced_at":"2026-04-02T13:24:35.291Z","repository":{"id":119476848,"uuid":"274010985","full_name":"bergkvist/includeimage","owner":"bergkvist","description":"Dockerfile syntax extension for combining multiple Docker images into one. (INCLUDE \u003cimage\u003e)","archived":false,"fork":false,"pushed_at":"2020-06-25T09:35:19.000Z","size":16,"stargazers_count":22,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-13T15:49:34.644Z","etag":null,"topics":["buildkit","docker-build","docker-image","dockerfile","golang","include","syntax"],"latest_commit_sha":null,"homepage":"https://github.com/moby/moby/issues/3378","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bergkvist.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}},"created_at":"2020-06-22T01:14:58.000Z","updated_at":"2024-07-21T20:16:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bfbe2e8-bc65-4c8e-8e74-ef39b5734377","html_url":"https://github.com/bergkvist/includeimage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bergkvist%2Fincludeimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bergkvist%2Fincludeimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bergkvist%2Fincludeimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bergkvist%2Fincludeimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bergkvist","download_url":"https://codeload.github.com/bergkvist/includeimage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252598155,"owners_count":21774211,"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":["buildkit","docker-build","docker-image","dockerfile","golang","include","syntax"],"created_at":"2024-08-02T22:01:21.728Z","updated_at":"2026-04-02T13:24:35.232Z","avatar_url":"https://github.com/bergkvist.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"See https://github.com/moby/moby/issues/3378\n\n# bergkvist/includeimage\n\nDockerfile syntax extension for combining multiple Docker images into one.\n\n## Usage\n\n### Syntax\n\n```\nINCLUDE \u003cimage\u003e:\u003ctag\u003e\n```\n\n### Example\n\n```Dockerfile\n#syntax=bergkvist/includeimage\nFROM alpine:3.12.0\nINCLUDE rust:1.44-alpine3.12\nINCLUDE python:3.8.3-alpine3.12\n```\n\n### How to build\n\nRemember to use Docker buildkit when building, as seen below.\n\n```sh\nDOCKER_BUILDKIT=1 docker build -t myimage:latest .\n```\n\n## Behavior\n\n- The entire file system of an included image is copied over\n- The environment variables of the included image is merged in\n  - PATH gets special treatment\n- CMD and ENTRYPOINT of included image is ignored.\n\nHow it is implemented:\n\n```Dockerfile\n# All the file system contents are copied over (using multi-stage builds)\nCOPY --from=\u003cimage\u003e:\u003ctag\u003e / /\n# We extract the environment variables from the included image\nENV \u003c-(merge)- docker inspect \u003cimage\u003e:\u003ctag\u003e --format='{{.Config.Env}}'\n```\n\n## Current Issues/Limitations\n\n- Currently only supports including amd64 linux images.\n- The PATH variable will eventually contain a lot of duplicate entries. This could probably be cleaned up, but shouldn't cause any issues. (I think)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbergkvist%2Fincludeimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbergkvist%2Fincludeimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbergkvist%2Fincludeimage/lists"}