{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleContainerTools/kaniko/issues/359","repository_url":"https://api.github.com/repos/GoogleContainerTools/kaniko","labels_url":"https://api.github.com/repos/GoogleContainerTools/kaniko/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/GoogleContainerTools/kaniko/issues/359/comments","events_url":"https://api.github.com/repos/GoogleContainerTools/kaniko/issues/359/events","html_url":"https://github.com/GoogleContainerTools/kaniko/issues/359","id":361155682,"node_id":"MDU6SXNzdWUzNjExNTU2ODI=","number":359,"title":"Please provide a valid path to a Dockerfile","user":{"login":"olvlvl","id":155998,"node_id":"MDQ6VXNlcjE1NTk5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/155998?v=4","gravatar_id":"","url":"https://api.github.com/users/olvlvl","html_url":"https://github.com/olvlvl","followers_url":"https://api.github.com/users/olvlvl/followers","following_url":"https://api.github.com/users/olvlvl/following{/other_user}","gists_url":"https://api.github.com/users/olvlvl/gists{/gist_id}","starred_url":"https://api.github.com/users/olvlvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olvlvl/subscriptions","organizations_url":"https://api.github.com/users/olvlvl/orgs","repos_url":"https://api.github.com/users/olvlvl/repos","events_url":"https://api.github.com/users/olvlvl/events{/privacy}","received_events_url":"https://api.github.com/users/olvlvl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-18T06:38:35Z","updated_at":"2018-09-18T08:55:46Z","closed_at":null,"author_association":"NONE","body":"**Actual behavior**\r\nI'm getting the error \"please provide a valid path to a Dockerfile within the build context with --dockerfile\" although I'm providing a correct absolute path to a Dockerfile. I tried replacing the absolute path with `Dockerfile`, `./Dockerfile`, and empty string. I'm running the image on MacOS using `Docker 18.06.1-ce-mac73 (26764)`.\r\n\r\n**Expected behavior**\r\nThe command would just run.\r\n\r\n**To Reproduce**\r\n\r\n```\r\n$ docker run gcr.io/kaniko-project/executor /kaniko/executor --dockerfile=\"/Volumes/hellofresh/webdev/src/menus-service/docker/images/cli-base/Dockerfile\" \"--destination=/Volumes/hellofresh:test\" --context=/Volumes/hellofresh/webdev/src/menus-service/docker/images --tarPath=/Volumes/hellofresh/img.tar\r\n```\r\n\r\n**Additional Information**\r\nThis is the Dockerfile I'm trying to build:\r\n\r\n```bash\r\n$ cat /Volumes/hellofresh/webdev/src/menus-service/docker/images/cli-base/Dockerfile\r\n```\r\n\r\n```\r\nFROM php:7.2.9-alpine3.8\r\n\r\nRUN apk add --no-cache make openssl-dev && \\\r\n    apk add --no-cache --virtual .php-ext-deps autoconf g++ pcre-dev && \\\r\n    pecl channel-update pecl.php.net && \\\r\n    pecl install apcu mongodb redis && \\\r\n    docker-php-ext-install bcmath && \\\r\n    docker-php-ext-enable apcu mongodb opcache redis && \\\r\n    docker-php-source delete && \\\r\n    apk del .php-ext-deps && \\\r\n    rm -r /tmp/*\r\n\r\nRUN echo \"apc.enable_cli=On\" >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini\r\n```\r\n\r\nKaniko Image: `sha256:286f41d4ac5be8829c1d720a6afca4feabc880557b48575d5339577ad71455e7`"},"comment":{"url":"https://api.github.com/repos/GoogleContainerTools/kaniko/issues/comments/422312479","html_url":"https://github.com/GoogleContainerTools/kaniko/issues/359#issuecomment-422312479","issue_url":"https://api.github.com/repos/GoogleContainerTools/kaniko/issues/359","id":422312479,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjMxMjQ3OQ==","user":{"login":"priyawadhwa","id":10676490,"node_id":"MDQ6VXNlcjEwNjc2NDkw","avatar_url":"https://avatars1.githubusercontent.com/u/10676490?v=4","gravatar_id":"","url":"https://api.github.com/users/priyawadhwa","html_url":"https://github.com/priyawadhwa","followers_url":"https://api.github.com/users/priyawadhwa/followers","following_url":"https://api.github.com/users/priyawadhwa/following{/other_user}","gists_url":"https://api.github.com/users/priyawadhwa/gists{/gist_id}","starred_url":"https://api.github.com/users/priyawadhwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priyawadhwa/subscriptions","organizations_url":"https://api.github.com/users/priyawadhwa/orgs","repos_url":"https://api.github.com/users/priyawadhwa/repos","events_url":"https://api.github.com/users/priyawadhwa/events{/privacy}","received_events_url":"https://api.github.com/users/priyawadhwa/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T08:55:46Z","updated_at":"2018-09-18T08:55:46Z","author_association":"MEMBER","body":"Hey @olvlvl, to run in Docker you'll need to mount the build context into the image with the `-v` flag so that it exists in the image, you could try something like :\r\n\r\n```\r\ndocker run -v /Volumes/hellofresh/webdev/src/menus:/workspace \\\r\ngcr.io/kaniko-project/executor \\\r\n--dockerfile=/workspace/docker/images/cli-base/Dockerfile  \\\r\n--context=/workspace --tarPath=/Volumes/hellofresh/img.tar\r\n```\r\n"}}
{"actor":{"display_login":"priyawadhwa"}}