79412864

Date: 2025-02-04 19:55:58
Score: 2
Natty:
Report link

I have created new image for flink:1.20.0 and Java17.

Use the Flink 1.20.0 image as the base image

FROM flink:1.20.0

Set the directory where Java 17 will be copied

ENV JAVA_HOME=/opt/java17

ENV PATH="$JAVA_HOME/bin:$PATH"

Copy Java 17 files to the /opt directory

COPY jdk-17/jdk-17.0.12 /opt/java17

Verify Java installation (optional)

RUN java -version

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mitesh