Skip to content

Commit 1f193d6

Browse files
sap1ensferenc-csaky
authored andcommitted
feat: use full JDK
1 parent e191469 commit 1f193d6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

flink-sql-runner/src/main/docker/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ ARG TARGETARCH
2121

2222
USER root
2323

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+
2435
RUN set -eux; \
2536
case "${TARGETARCH:-$(uname -m)}" in \
2637
x86_64) ASYNC_PROFILER_ARCH="x64" ;; \

0 commit comments

Comments
 (0)