`ignorefile` option being ignored

the ignorefile option does not work for me. When I deploy with

fly deploy --ignorefile=other/.dockerignore --dockerfile other/Dockerfile

The build context is close to the same size of my entire directory:

 => [internal] load build context                               268.9s
 => => transferring context: 888.99MB                           268.7s


❯ du -sh .
987M    .

But when I move the .dockerignore to the root, it’s much smaller

❯ mv other/Dockerfile other/.dockerignore .
...
 => [internal] load build context                                17.3s
 => => transferring context: 31.53MB 

I’ve traced the problem to the runBuildKitBuild function, but after that, I guess the process gets taken over by grpc, and it’s going to be closed source.

3 Likes

I would love this to be fixed!

1 Like

Just a quick note, I did find where the process is hijacked by grpc on moby build kit

But I don’t really have time to investigate further

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.