Skip to content

Commit 0408762

Browse files
Ignore large build folders in Docker builds
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>
1 parent 3f705ac commit 0408762

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
Dockerfile*
2+
/_opam/
3+
/_build/

0 commit comments

Comments
 (0)