From 5751b3d419271dfd6f1367580cf8c173642fa821 Mon Sep 17 00:00:00 2001 From: Pikachu920 <28607612+Pikachu920@users.noreply.github.com> Date: Sat, 8 Jun 2024 11:23:53 -0500 Subject: [PATCH] Fix sdkman-init --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5feab08..088ec81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,11 @@ ENV PYTHONUNBUFFERED=1 RUN apk add bash curl git zip RUN curl -s "https://get.sdkman.io" | bash -RUN source "$HOME/.sdkman/bin/sdkman-init.sh" +RUN bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk version" # Install JDK 21 and set it as default RUN yes | sdk install java 21.0.3-tem # Install JDK 17 but don't set it as default RUN yes n | sdk install java 17.0.11-tem -RUN apk add --no-cache git openjdk17 -RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community openjdk21 COPY run-tests.py /run-tests.py ENTRYPOINT ["python3", "/run-tests.py"]