build: avoid resolution of dockerfile if context is remote
In 566f41b598
, we added a check to ensure
that we avoid resolving http URLs for Dockerfile. However, we have
another circumstance we should not resolve the path in - if the context
is a remote context, the dockerfile is resolved in that context (see
build.go#LoadInputs for more information).
Therefore, we should only resolve the dockerfile to a local directory if
the context is also resolved to a local directory.
Signed-off-by: Justin Chadwell <me@jedevc.com>
pull/1740/head
parent
b716e48926
commit
f6cccefffc
Loading…
Reference in New Issue