From 4c1b03c9afc71f2ffda0c9fbf170792b80daa104 Mon Sep 17 00:00:00 2001 From: autocommit Date: Tue, 26 May 2026 15:08:20 -0700 Subject: [PATCH] =?UTF-8?q?chore(docker-tools/docker/):=20=F0=9F=94=A7=20O?= =?UTF-8?q?ptimize=20Docker=20build=20context=20by=20updating=20.dockerign?= =?UTF-8?q?ore=20patterns=20to=20refine=20exclusions=20for=20performance?= =?UTF-8?q?=20and=20security?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- tools/docker/Dockerfile.mc-ai.dockerignore | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tools/docker/Dockerfile.mc-ai.dockerignore b/tools/docker/Dockerfile.mc-ai.dockerignore index 1d6e1ebf..c516df83 100644 --- a/tools/docker/Dockerfile.mc-ai.dockerignore +++ b/tools/docker/Dockerfile.mc-ai.dockerignore @@ -1,13 +1,21 @@ # This .dockerignore is used by Dockerfile.mc-ai when the build context is # the project worktree (`docker build -f tools/docker/Dockerfile.mc-ai $SCRATCH`). -# Keep the context lean — the builder stage only needs src/simulator and the -# runtime stage only needs the entrypoint script under tools/docker/. +# Keep the context lean — the builder stage needs src/simulator and the +# public/ tree (mc-comms/mc-trade/mc-score/mc-ecology include_str! against +# public/games/age-of-dwarves/data/ + public/resources/ at compile time); +# the runtime stage only needs the entrypoint script. ** !src/simulator/** +!public/** !tools/docker/mc-ai-entrypoint.sh !tools/docker/Dockerfile.mc-ai -# Re-exclude build noise that may live under src/simulator. +# Re-exclude build noise + heavy media that no Rust crate include_str!s. src/simulator/target/** **/.local/** **/.godot/** +public/**/sprites/** +public/**/*.png +public/**/*.webp +public/**/*.jpg +public/**/*.jpeg