We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e191469 commit 1f193d6Copy full SHA for 1f193d6
1 file changed
flink-sql-runner/src/main/docker/Dockerfile
@@ -21,6 +21,17 @@ ARG TARGETARCH
21
22
USER root
23
24
+# Install JDK 17 (replacing the default JRE)
25
+RUN apt-get update && \
26
+ apt-get install -y --no-install-recommends \
27
+ openjdk-17-jdk-headless \
28
+ && rm -rf /var/lib/apt/lists/*
29
+
30
+# Update JAVA_HOME to point to JDK (handles both amd64 and arm64)
31
+RUN ln -sf /usr/lib/jvm/java-17-openjdk-* /usr/lib/jvm/java-17-openjdk
32
+ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk
33
+ENV PATH=$JAVA_HOME/bin:$PATH
34
35
RUN set -eux; \
36
case "${TARGETARCH:-$(uname -m)}" in \
37
x86_64) ASYNC_PROFILER_ARCH="x64" ;; \
0 commit comments