Skip to content

Commit

Permalink
dockerfile: use none differ for dockerfile/dockerignore
Browse files Browse the repository at this point in the history
This avoids wrong metadata matches on small files

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Apr 21, 2021
1 parent 1937967 commit dab2657
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/dockerfile/builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func Build(ctx context.Context, c client.Client) (*client.Result, error) {
llb.SessionID(c.BuildOpts().SessionID),
llb.SharedKeyHint(localNameDockerfile),
dockerfile2llb.WithInternalName(name),
llb.Differ(llb.DiffNone, false),
)

fileop := useFileOp(opts, &caps)
Expand Down Expand Up @@ -302,6 +303,7 @@ func Build(ctx context.Context, c client.Client) (*client.Result, error) {
llb.FollowPaths([]string{dockerignoreFilename}),
llb.SharedKeyHint(localNameContext+"-"+dockerignoreFilename),
dockerfile2llb.WithInternalName("load "+dockerignoreFilename),
llb.Differ(llb.DiffNone, false),
)
dockerignoreState = &st
}
Expand Down

0 comments on commit dab2657

Please sign in to comment.