{"id":21344190,"url":"https://github.com/klakegg/dockerfile-import","last_synced_at":"2026-05-22T14:05:41.958Z","repository":{"id":107031364,"uuid":"294979346","full_name":"klakegg/dockerfile-import","owner":"klakegg","description":"Preprocessing of Dockerfiles containing IMPORT instructions.","archived":false,"fork":false,"pushed_at":"2020-09-22T13:28:11.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T16:09:26.092Z","etag":null,"topics":["docker","dockerfile"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/klakegg/dockerfile-import","language":"Ruby","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/klakegg.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-09-12T16:11:51.000Z","updated_at":"2022-02-10T09:55:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"db3296c1-5e90-4a1e-b6f2-8914071f7efc","html_url":"https://github.com/klakegg/dockerfile-import","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klakegg%2Fdockerfile-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klakegg%2Fdockerfile-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klakegg%2Fdockerfile-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klakegg%2Fdockerfile-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klakegg","download_url":"https://codeload.github.com/klakegg/dockerfile-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243819291,"owners_count":20352864,"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","dockerfile"],"created_at":"2024-11-22T01:17:38.493Z","updated_at":"2026-05-22T14:05:36.890Z","avatar_url":"https://github.com/klakegg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerfile Import\n\nIntroduces the instruction `IMPORT` for preprocessing of Dockerfiles.\n\nSyntax:\n```\nIMPORT \u003cfile\u003e [AS \u003cname\u003e]\n```\n\nImport without `name` will import the referenced file without any modifications.\n\nImport with `name` will import the referenced file and update instances of `COPY` and `FROM` by prefixing or inserting the name when relevant.\n\n`file` is looked up in this order:\n1. `file`.df\n1. `file`/Dockerfile\n1. `file`\n\nImported files may include further import instructions relative to the imported file.\n\nTo build your image using import instructions, simply preprocess your Dockerfile before performing `docker build`:\n\n```bash\n# Preprocess dockerfile\ndocker run --rm -i \\\n    -v $(pwd):/work \\\n    -u $(id -u) \\\n    klakegg/dockerfile-import \\\n    Dockerfile Dockerfile-imported\n\n# Build as usual with the preprocessed file\ndocker build -t mytag -f Dockerfile-imported .\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklakegg%2Fdockerfile-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklakegg%2Fdockerfile-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklakegg%2Fdockerfile-import/lists"}