{"action":"created","issue":{"url":"https://api.github.com/repos/apocas/dockerode/issues/412","repository_url":"https://api.github.com/repos/apocas/dockerode","labels_url":"https://api.github.com/repos/apocas/dockerode/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/apocas/dockerode/issues/412/comments","events_url":"https://api.github.com/repos/apocas/dockerode/issues/412/events","html_url":"https://github.com/apocas/dockerode/issues/412","id":272578101,"number":412,"title":"Custom dockerfile path?","user":{"login":"IniZio","id":3119725,"avatar_url":"https://avatars1.githubusercontent.com/u/3119725?v=4","gravatar_id":"","url":"https://api.github.com/users/IniZio","html_url":"https://github.com/IniZio","followers_url":"https://api.github.com/users/IniZio/followers","following_url":"https://api.github.com/users/IniZio/following{/other_user}","gists_url":"https://api.github.com/users/IniZio/gists{/gist_id}","starred_url":"https://api.github.com/users/IniZio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IniZio/subscriptions","organizations_url":"https://api.github.com/users/IniZio/orgs","repos_url":"https://api.github.com/users/IniZio/repos","events_url":"https://api.github.com/users/IniZio/events{/privacy}","received_events_url":"https://api.github.com/users/IniZio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-09T14:13:33Z","updated_at":"2017-11-18T02:05:31Z","closed_at":null,"author_association":"NONE","body":"Hello I attempted to build a subdirectory using the directory's dockerfile by doing\r\n```js\r\ndocker.buildImage(\r\n  tar.pack(resolve('./', cwd)),\r\n  {\r\n    f: resolve('../docker-images/nodejs/Dockerfile'),\r\n    t: settings.name\r\n  },\r\n  (err, output) => {\r\n    output.pipe(process.stdout)\r\n  }\r\n)\r\n```\r\nHowever it seems to ignore the `f` property thus reporting error:\r\n```\r\nError: (HTTP code 500) server error - Cannot locate specified Dockerfile: Dockerfile\r\n```\r\nOr do I have to include the Dockerfile in the tar pack already rather than setting a custom dockerfile in the options?"},"comment":{"url":"https://api.github.com/repos/apocas/dockerode/issues/comments/345410432","html_url":"https://github.com/apocas/dockerode/issues/412#issuecomment-345410432","issue_url":"https://api.github.com/repos/apocas/dockerode/issues/412","id":345410432,"user":{"login":"Seikho","id":5344189,"avatar_url":"https://avatars0.githubusercontent.com/u/5344189?v=4","gravatar_id":"","url":"https://api.github.com/users/Seikho","html_url":"https://github.com/Seikho","followers_url":"https://api.github.com/users/Seikho/followers","following_url":"https://api.github.com/users/Seikho/following{/other_user}","gists_url":"https://api.github.com/users/Seikho/gists{/gist_id}","starred_url":"https://api.github.com/users/Seikho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seikho/subscriptions","organizations_url":"https://api.github.com/users/Seikho/orgs","repos_url":"https://api.github.com/users/Seikho/repos","events_url":"https://api.github.com/users/Seikho/events{/privacy}","received_events_url":"https://api.github.com/users/Seikho/received_events","type":"User","site_admin":false},"created_at":"2017-11-18T02:05:31Z","updated_at":"2017-11-18T02:05:31Z","author_association":"NONE","body":"Looking at my code that uses this, I include the Dockerfile in the tarball and provide the path by adding a `dockerfile` property on the options object.\r\n[See here for an example](https://github.com/the-concierge/concierge/blob/master/src/api/applications/build.ts#L30)"}}
{"actor":{"display_login":"Seikho"}}