Skip to content

Change base image to Eclipse Temurin 17#5

Open
Loki180128 wants to merge 1 commit intoLondheShubham153:masterfrom
Loki180128:Update_New
Open

Change base image to Eclipse Temurin 17#5
Loki180128 wants to merge 1 commit intoLondheShubham153:masterfrom
Loki180128:Update_New

Conversation

@Loki180128
Copy link
Copy Markdown

@Loki180128 Loki180128 commented Mar 9, 2026

base image

FROM eclipse-temurin:17-jdk-alpine

WORKDIR /app

COPY src/Main.java /app/Main.java

COPY quotes.txt quotes.txt

RUN javac Main.java

EXPOSE 8000

CMD ["java","Main"]


the old image is not working, hence updated another.
I hope i have used correct one.

Summary by CodeRabbit

  • Chores
    • Updated container runtime environment to a newer, more supported version for improved stability and security.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 9, 2026

📝 Walkthrough

Walkthrough

The Docker base image was updated from openjdk:17-jdk-alpine to eclipse-temurin:17-jdk-alpine. This change updates the container runtime environment while preserving all build steps and application configuration.

Changes

Cohort / File(s) Summary
Docker Base Image
Dockerfile
Updated base image from openjdk:17-jdk-alpine to eclipse-temurin:17-jdk-alpine for Java 17 runtime.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A new container home we've found,
From OpenJDK to Temurin's ground,
Same Java seventeen, tried and true,
Just a fresh base to build on anew! 🐳

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: updating the Dockerfile base image from openjdk:17-jdk-alpine to eclipse-temurin:17-jdk-alpine.
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

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@Dockerfile`:
- Around line 1-2: The top-line comment incorrectly says "official OpenJDK 17
image"; update the Dockerfile comment to reference the actual base image used
(e.g., "Eclipse Temurin OpenJDK 17 image") so it matches the FROM statement
(FROM eclipse-temurin:17-jdk-alpine); modify the comment text above the FROM
line to mention "Eclipse Temurin" and optionally "OpenJDK 17" for clarity.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 37825007-d80b-497e-b137-5f05c49b50f2

📥 Commits

Reviewing files that changed from the base of the PR and between c184ddb and 3058016.

📒 Files selected for processing (1)
  • Dockerfile

Comment on lines 1 to +2
# Use the official OpenJDK 17 image as the base image
FROM openjdk:17-jdk-alpine
FROM eclipse-temurin:17-jdk-alpine
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🌐 Web query:

eclipse-temurin 17-jdk-alpine Docker image

💡 Result:

eclipse-temurin:17-jdk-alpine is a valid Docker Official Image tag (Temurin JDK 17 on Alpine). You can use it like:

FROM eclipse-temurin:17-jdk-alpine

For better reproducibility, pin to a specific Alpine release and/or Temurin patch tag, e.g. 17-jdk-alpine-3.23 or 17.0.18_8-jdk-alpine. [2]

Notes:

  • The -alpine variants are based on Alpine Linux (small footprint). [1]
  • Alpine uses musl (not glibc), which can cause compatibility issues with some native dependencies; if you need maximum compatibility, consider a Debian/Ubuntu-based Temurin tag (for example eclipse-temurin:17-jdk or 17-jdk-jammy). [3]

Update comment to reflect the new base image.

The comment on line 1 references "official OpenJDK 17 image" but the base image has been changed to Eclipse Temurin. Update the comment for consistency.

📝 Proposed fix
-# Use the official OpenJDK 17 image as the base image
+# Use the Eclipse Temurin 17 image as the base image
 FROM eclipse-temurin:17-jdk-alpine
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# Use the official OpenJDK 17 image as the base image
FROM openjdk:17-jdk-alpine
FROM eclipse-temurin:17-jdk-alpine
# Use the Eclipse Temurin 17 image as the base image
FROM eclipse-temurin:17-jdk-alpine
🧰 Tools
🪛 Trivy (0.69.2)

[error] 1-1: Image user should not be 'root'

Specify at least 1 USER command in Dockerfile with non-root user as argument

Rule: DS-0002

Learn more

(IaC/Dockerfile)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@Dockerfile` around lines 1 - 2, The top-line comment incorrectly says
"official OpenJDK 17 image"; update the Dockerfile comment to reference the
actual base image used (e.g., "Eclipse Temurin OpenJDK 17 image") so it matches
the FROM statement (FROM eclipse-temurin:17-jdk-alpine); modify the comment text
above the FROM line to mention "Eclipse Temurin" and optionally "OpenJDK 17" for
clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant