{"id":15127612,"url":"https://github.com/mcollina/dockerode-build","last_synced_at":"2025-08-30T19:31:25.811Z","repository":{"id":57214078,"uuid":"49211196","full_name":"mcollina/dockerode-build","owner":"mcollina","description":"Build an image using dockerode a tar-fs","archived":false,"fork":false,"pushed_at":"2017-09-21T14:07:15.000Z","size":12,"stargazers_count":5,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-17T15:41:25.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mcollina.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}},"created_at":"2016-01-07T15:01:49.000Z","updated_at":"2024-06-14T12:02:47.000Z","dependencies_parsed_at":"2022-08-29T02:10:59.827Z","dependency_job_id":null,"html_url":"https://github.com/mcollina/dockerode-build","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/mcollina%2Fdockerode-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fdockerode-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fdockerode-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcollina%2Fdockerode-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcollina","download_url":"https://codeload.github.com/mcollina/dockerode-build/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231521940,"owners_count":18389472,"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":[],"created_at":"2024-09-26T02:05:02.640Z","updated_at":"2024-12-27T17:49:05.392Z","avatar_url":"https://github.com/mcollina.png","language":"JavaScript","readme":"# dockerode-build\n\nBuild a docker container using streams and Dockerode.\n\n## Install\n\n```\nnpm i dockerode-build --save\n```\n\n## Usage\n\n```js\n'use strict'\n\nvar build = require('dockerode-build')\nvar path = require('path')\nvar pump = require('pump')\n\npump(\n  build(path.join(__dirname, 'fixture', 'Dockerfile')),\n  process.stdout,\n  function (err) {\n    if (err) {\n      console.log('something went wrong:', err.message)\n      process.exit(1)\n    }\n  }\n)\n```\n\n## API\n\n### dockerodeBuild(path[, opts])\n\nStart a building stream from the given `path` to a `Dockerfile`.\nIf the `path` is not absolute, it is resolved against `process.cwd()`.\n\nIt returns a stream, that can be piped to the output destination.\n\nIf that stream is piped to a TTY, such as a `process.stdout`, the\ndownload progress bar will be automatically show, exactly like `docker build .`.\n\nThe opts are passed straight to\n[`dockerorde.buildImage()`](http://npm.im/dockerode). If you add a\n`docker` opts, that would be used to instantiate the Dockerode\ninstance with the given options (you would need this for auth).\n\nEvents:\n\n* `complete`: building the image is complete, and the image id is the\n  first argument.\n* `downloadProgress`: emits the metadata returned by Docker to show the\n  progress bars.\n\n## Acknowledgements\n\ndockerode-build is sponsored by [nearForm](http://nearform.com).\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcollina%2Fdockerode-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcollina%2Fdockerode-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcollina%2Fdockerode-build/lists"}