devops(backend): add .dockerignore to exclude target/ from build context

Prevents 111MB of compiled output from being sent to the BuildKit daemon
on cold builds. Only .mvn/, mvnw, pom.xml, and src/ are needed by the
three COPY instructions in the Dockerfile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-15 11:28:25 +02:00
parent d943aac3e3
commit eee2d4ff81

4
backend/.dockerignore Normal file
View File

@@ -0,0 +1,4 @@
target/
.git/
*.md
api_tests/