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:
parent
7fdd1c39a7
commit
4c1b03c9af
1 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue