Skip to content

Use JRE, not JDK in production dockerfile#9382

Open
fm3 wants to merge 2 commits intomasterfrom
docker-jre
Open

Use JRE, not JDK in production dockerfile#9382
fm3 wants to merge 2 commits intomasterfrom
docker-jre

Conversation

@fm3
Copy link
Member

@fm3 fm3 commented Mar 9, 2026

Reduces image size from ~630M to ~530M. I don’t think we need any JDK features in production.

Other large and only barely used dependencies include git and nodejs. We might want to consider getting rid of them to further reduce image download sizes.

URL of deployed dev instance (used for testing):

Steps to test:

  • Test image loading, annotating

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 9, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ac14f16d-4319-4004-9929-24791bfd2b6d

📥 Commits

Reviewing files that changed from the base of the PR and between 3f3bb60 and 6cb1391.

📒 Files selected for processing (3)
  • .github/Dockerfile.datastore
  • .github/Dockerfile.tracingstore
  • .github/Dockerfile.webknossos

📝 Walkthrough

Walkthrough

Three Dockerfiles updated to use JRE-specific base image variants. Changed eclipse-temurin:21-jammy to eclipse-temurin:21-jre-jammy across datastore, tracingstore, and webknossos configurations. No alterations to build logic or runtime behavior.

Changes

Cohort / File(s) Summary
Base Image Updates
.github/Dockerfile.datastore, .github/Dockerfile.tracingstore, .github/Dockerfile.webknossos
Updated base image from eclipse-temurin:21-jammy to eclipse-temurin:21-jre-jammy across all three Dockerfiles, switching from JDK to JRE-only variant.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A hop, a skip, we trim the fat,
From JDK down to JRE—imagine that!
Three containers lean and light,
Runtime-only, compact and bright,
No JDK tools slowing our flight! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Use JRE, not JDK in production dockerfile' clearly and concisely describes the main change: switching from JDK to JRE in production Dockerfiles.
Description check ✅ Passed The description is directly related to the changeset, explaining the rationale (reducing image size from 630M to 530M) and testing approach for the JRE migration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docker-jre

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@fm3 fm3 marked this pull request as ready for review March 9, 2026 18:36
@fm3 fm3 self-assigned this Mar 9, 2026
@fm3 fm3 requested a review from normanrz March 9, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants