Skip to content

Commit 72d245a

Browse files
dannonmvdbeek
authored andcommitted
Exclude node_modules at all depths in Docker builds
The pattern `node_modules` only matches at the root level in .dockerignore (unlike .gitignore). Use `**/node_modules` to exclude client/node_modules and avoid copying 22GB to the build context.
1 parent 5d36524 commit 72d245a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.k8s_ci.Dockerfile
22
.venv
33
database
4-
node_modules
4+
**/node_modules

0 commit comments

Comments
 (0)