docs/current_docs/partials/cookbook/builds/_image-from-dockerfile-build-context.mdx
The following function builds an image from a Dockerfile with a build context that is different than the current working directory.
<Tabs groupId="language" queryString="sdk"> <TabItem value="go" label="Go">Build an image from the source code in https://github.com/dockersamples/python-flask-redis using the Dockerfile from a different build context, at https://github.com/vimagick/dockerfiles#master:registry-cli/Dockerfile: