bitflicker64 opened a new pull request, #3025: URL: https://github.com/apache/hugegraph/pull/3025
## Purpose of the PR close #2977 ## Main Changes **`.dockerignore` (new file)** - Minimal, intentionally lean — only Docker-specific extras (`.git`, `.github`, compose files, docs) - Most patterns already covered by `.gitignore`, not duplicated per maintainer guidance **All 4 Dockerfiles** - Added `COPY --parents **/pom.xml ./` before `COPY . .` — pom layer only invalidates on pom changes, not source changes - Added `--mount=type=cache,target=/root/.m2` on `mvn package` — deps cached across repeated builds - Removed `vim`, `cron`, `service cron start`, `rm /var/lib/dpkg/info/libc-bin.*`, dead code from runtime stage > Note: `dependency:go-offline` not used — inter-module deps like `hg-pd-client` aren't on Maven Central and would cause it to fail. ## Verifying these changes - [x] Need tests and can be verified as follows: ```bash docker build -f hugegraph-pd/Dockerfile -t hugegraph-pd:cache-test . docker build -f hugegraph-store/Dockerfile -t hugegraph-store:cache-test . docker build -f hugegraph-server/Dockerfile -t hugegraph-server:cache-test . docker build -f hugegraph-server/Dockerfile-hstore -t hugegraph-server-hstore:cache-test . ``` ## Does this PR potentially affect the following parts? - [ ] Dependencies (add/update license info & regenerate_known_dependencies.sh) - [ ] Modify configurations - [ ] The public API - [ ] Other affects (typed here) - [x] Nope ## Documentation Status - [x] `Doc - No Need` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
