{"id":13989351,"url":"https://github.com/edrevo/dockerfile-plus","last_synced_at":"2025-04-10T01:14:40.636Z","repository":{"id":43745626,"uuid":"325649137","full_name":"edrevo/dockerfile-plus","owner":"edrevo","description":"New commands for Dockerfile","archived":false,"fork":false,"pushed_at":"2022-02-20T10:57:03.000Z","size":73,"stargazers_count":254,"open_issues_count":22,"forks_count":32,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T01:14:34.764Z","etag":null,"topics":["buildkit","docker","dockerfile","llb"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/edrevo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-30T21:13:24.000Z","updated_at":"2025-03-30T15:09:57.000Z","dependencies_parsed_at":"2022-09-01T06:32:21.572Z","dependency_job_id":null,"html_url":"https://github.com/edrevo/dockerfile-plus","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/edrevo%2Fdockerfile-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edrevo%2Fdockerfile-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edrevo%2Fdockerfile-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edrevo%2Fdockerfile-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edrevo","download_url":"https://codeload.github.com/edrevo/dockerfile-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"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","dockerfile","llb"],"created_at":"2024-08-09T13:01:37.045Z","updated_at":"2025-04-10T01:14:40.616Z","avatar_url":"https://github.com/edrevo.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Dockerfile+\n\nThis project provides Dockerfile syntax extensions that have been rejected by the moby project or haven't been addressed in a long time.\n\nCurrently, the project adds an `INCLUDE+` Dockerfile directive that allows you to import the content of another file into your Dockerfile. There are plans to add more features in the near future.\n\n- [Getting started](#getting-started)\n- [Features](#features)\n  - [INCLUDE+](#include)\n- [Roadmap](#roadmap)\n- [Feedback](#feedback)\n\n## Getting started\n\n- First, you need to make sure you are running a compatible version of Docker: you need at least Docker 18.09. If you are using an older version, you are out of luck. Sorry!\n- Export the following environment variables to enable Buildkit: `DOCKER_BUILDKIT=1` and `COMPOSE_DOCKER_CLI_BUILD=1` (this might not be necessary for newer installations of Docker)\n\nOnce your Docker is set, you just need to add the following line as your first line in your Dockerfile:\n\n```Dockerfile\n# syntax = edrevo/dockerfile-plus\n```\n\nThat's it!\n\n## Features\n\n### INCLUDE+\n\nRight now there is just one extra instruction: `INCLUDE+`. All Dockerfile+ commands will end up with a `+` sign to avoid any potential future collisions with Dockerfile commands.\n\n`INCLUDE+` will import the verbatim contents of another file into your Dockerfile. Here's an example Dockerfile which uses the `INCLUDE+` instruction:\n\n```Dockerfile\n# syntax = edrevo/dockerfile-plus\n\nFROM alpine\n\nINCLUDE+ Dockerfile.common\n\nENTRYPOINT [ \"mybin\" ]\n```\n\nIf Dockerfile.common contained a single line that said `RUN echo \"Hello World\"`, then the resulting Docker image would be identical to the one generated by this Dockerfile:\n\n\n```Dockerfile\nFROM alpine\n\nRUN echo \"Hello World\"\n\nENTRYPOINT [ \"mybin\" ]\n```\n\n## Roadmap\n\nThe next features in line would be:\n\n- `ENVFILE+` command, which would read a .env file and import all of those environment variable definitions into the Dockerfile\n- `RUN+ --no-cache`, which would disable the cache only for a specific RUN step (useful for non-idempotent commands, for example those that clone git repos)\n- `TAG` command\n- improvements to .dockerignore, like recursive dockerignore files\n\n## Feedback\n\nFound a bug? Want to contribute a PR? Want to improve documentation or add a cool logo for the project? All contributions are welcome!\n\n### Development environment\n\nInstall cargo (you can use [rustup.rs](https://rustup.rs/)) and run:\n\n```bash\n$ cargo build\n```\n\n### Creating a local release of the Buildkit frontend\n\n```bash\n$ docker build -f dockerfile-plus/Dockerfile .\n```\n\n### Creating multi-arch build\n- Enable Experiment in docker config. Add {\"experimental\": true} to docker daemon.json\n- Setup BuildKit local build container\n```\ndocker run --rm --privileged multiarch/qemu-user-static --reset -p yes\ndocker buildx create --name multiarch --driver docker-container --use\ndocker buildx inspect --bootstrap\n```\n- Run following to start multi-arch build\n```\ndocker buildx build \\                                                                   \n--platform linux/arm64/v8,linux/amd64 \\\n--tag edrevo/dockerfile-plus:latest \\\n-f dockerfile-plus/Dockerfile \\\n--load ## or --push to push DockerHub \\ \n.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedrevo%2Fdockerfile-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedrevo%2Fdockerfile-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedrevo%2Fdockerfile-plus/lists"}