Skip to content

Commit

Permalink
Fix sdkman-init
Browse files Browse the repository at this point in the history
  • Loading branch information
Pikachu920 authored Jun 8, 2024
1 parent 036d2fd commit 5751b3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 5751b3d

Please sign in to comment.