Skip to content

Conversation

@channel101
Copy link

Fix Dockerfile: Replace deprecated openjdk base image with amazoncorretto:17

Summary

This PR updates the Dockerfile to replace the deprecated or unavailable openjdk:17/openjdk:17-jdk base image with amazoncorretto:17. This resolves Docker build errors due to missing manifests for the previous base images and ensures consistent JDK vendor usage in both the build and runtime stages.

Details

  • Changed the runtime stage in the Dockerfile from:
    • FROM openjdk:17 or FROM openjdk:17-jdk
    • to: FROM amazoncorretto:17
  • Fixes image pull/build error:
    MANIFEST_UNKNOWN: manifest unknown; unknown tag=17-jdk
    
  • Keeping both build and runtime stages on Corretto 17 improves compatibility and stability.

How to verify

  • Rebuild and redeploy the Docker image.
  • The image build should complete successfully without manifest/tag errors.
  • The application should launch normally on port 8080.

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