chore(docker-tools/docker/): 🔧 Optimize Docker build context by updating .dockerignore patterns to refine exclusions for performance and security

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
autocommit 2026-05-26 15:08:20 -07:00
parent 7fdd1c39a7
commit 4c1b03c9af

View file

@ -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