Skip to content

Commit

Permalink
Merge pull request #727 from tonistiigi/add-fix
Browse files Browse the repository at this point in the history
dockerfile: avoid urls in context filter
  • Loading branch information
tiborvass authored Nov 21, 2018
2 parents f2f4b53 + c840e79 commit bf8c057
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/dockerfile/dockerfile2llb/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,9 @@ func dispatch(d *dispatchState, cmd command, opt dispatchOpt) error {
err = dispatchCopy(d, c.SourcesAndDest, opt.buildContext, true, c, "", opt)
if err == nil {
for _, src := range c.Sources() {
d.ctxPaths[path.Join("/", filepath.ToSlash(src))] = struct{}{}
if !strings.HasPrefix(src, "http://") && !strings.HasPrefix(src, "https://") {
d.ctxPaths[path.Join("/", filepath.ToSlash(src))] = struct{}{}
}
}
}
case *instructions.LabelCommand:
Expand Down

0 comments on commit bf8c057

Please sign in to comment.