{"push_id":2345046848,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"82a80858857aeeb37008bd7d2f4afcda3d39c966","before":"02e8dc6bfcf283322a767f711b3058c4032fb507","commits":[{"sha":"a1048523d274347179c3b4011c56747f8fbc15ab","author":{"name":"Sebastiaan van Stijn","email":"f27a17fc90c00d8c248d8510a1084221738b492b@gone.nl"},"message":"Allow Dockerfile from outside build-context\n\nHistorically, the Dockerfile had to be insde the build-context, because it was\nsent as part of the build-context.\n\nhttps://github.com/moby/moby/pull/31236/commits/3f6dc81e10b8b813fffaa9b4167a60c5a507fa38\nadded support for passing the Dockerfile through stdin, in which case the\ncontents of the Dockerfile is injected into the build-context.\n\nThis patch uses the same mechanism for situations where the location of the\nDockerfile is passed, and its path is outside of the build-context.\n\nBefore this change:\n\n    $ mkdir -p myproject/context myproject/dockerfiles && cd myproject\n    $ echo \"hello\" > context/hello\n    $ echo -e \"FROM busybox\\nCOPY /hello /\\nRUN cat /hello\" > dockerfiles/Dockerfile\n    $ docker build --no-cache -f $PWD/dockerfiles/Dockerfile $PWD/context\n\n    unable to prepare context: the Dockerfile (/Users/sebastiaan/projects/test/dockerfile-outside/myproject/dockerfiles/Dockerfile) must be within the build context\n\nAfter this change:\n\n    $ mkdir -p myproject/context myproject/dockerfiles && cd myproject\n    $ echo \"hello\" > context/hello\n    $ echo -e \"FROM busybox\\nCOPY /hello /\\nRUN cat /hello\" > dockerfiles/Dockerfile\n    $ docker build --no-cache -f $PWD/dockerfiles/Dockerfile $PWD/context\n\n    Sending build context to Docker daemon  2.607kB\n    Step 1/3 : FROM busybox\n     ---> 6ad733544a63\n    Step 2/3 : COPY /hello /\n     ---> 9a5ae1c7be9e\n    Step 3/3 : RUN cat /hello\n     ---> Running in 20dfef2d180f\n    hello\n    Removing intermediate container 20dfef2d180f\n     ---> ce1748f91bb2\n    Successfully built ce1748f91bb2\n\nSigned-off-by: Sebastiaan van Stijn <github@gone.nl>","distinct":true,"url":"https://api.github.com/repos/docker/cli/commits/a1048523d274347179c3b4011c56747f8fbc15ab"},{"sha":"82a80858857aeeb37008bd7d2f4afcda3d39c966","author":{"name":"Vincent Demeester","email":"c4c21f2bfe4ec34ddc59cdd941972a20fc455cb0@docker.com"},"message":"Merge pull request #886 from thaJeztah/dockerfile-outside-context\n\nAllow Dockerfile from outside build-context","distinct":true,"url":"https://api.github.com/repos/docker/cli/commits/82a80858857aeeb37008bd7d2f4afcda3d39c966"}]}
{"actor":{"display_login":"vdemeester"}}