Skip to content

Ignore large build folders in Docker builds#661

Merged
djs55 merged 1 commit into
moby:masterfrom
tarides:faster-dockerbuild
May 20, 2026
Merged

Ignore large build folders in Docker builds#661
djs55 merged 1 commit into
moby:masterfrom
tarides:faster-dockerbuild

Conversation

@Leonidas-from-XIV
Copy link
Copy Markdown
Contributor

On my system docker build uploads about 2GB of data from Dune's _build and OPAM's _opam folder which takes a long time and isn't needed as the Docker image builds the code from scratch. These folders typically contain all dependencies and compilers so they can get pretty big.

This PR excludes them so it only takes a few seconds to start building the container.

cc @djs55

@djs55
Copy link
Copy Markdown
Collaborator

djs55 commented Apr 13, 2026

Sorry could you fix the DCO issue (the signed-off-by line) (it’s a moby project thing)

On my system `docker build` uploads about 2GB of data from Dune's
`_build` and OPAM's `_opam` folder which takes a long time and isn't
needed as the Docker image builds the code from scratch.

This PR includes it so it only takes a few seconds to start building the
container.

Signed-off-by: Marek Kubica <marek@tarides.com>
@Leonidas-from-XIV
Copy link
Copy Markdown
Contributor Author

Yes sure, done! (we have the same DCO thing in the Dune repo)

@Leonidas-from-XIV
Copy link
Copy Markdown
Contributor Author

ping?

@Leonidas-from-XIV
Copy link
Copy Markdown
Contributor Author

Hi @djs55! Could you take a look at this PR? I think I addressed all the points.

@djs55 djs55 merged commit 92b705a into moby:master May 20, 2026
5 of 10 checks passed
@djs55
Copy link
Copy Markdown
Collaborator

djs55 commented May 20, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants