Skip to content

Commit

Permalink
Fix java version selection (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliAlex authored Feb 5, 2025
1 parent 476962c commit a3a96a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
bash /scripts/install_ffmpeg.sh; \
elif [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
bash /scripts/install_ffmpeg_cuda.sh; \
# Choose the java version
update-alternatives --set java /usr/lib/jvm/java-17-openjdk-17.0.13.0.11-3.el8.x86_64/bin/java; \
# Choose the java version \
JAVA_BIN=$(ls -d /usr/lib/jvm/java-17-openjdk*/bin/java | head -n 1); \
update-alternatives --set java "$JAVA_BIN"; \
else \
echo "Unsupported platform: ${TARGETARCH}" && exit 1; \
fi
Expand Down

0 comments on commit a3a96a9

Please sign in to comment.