Skip to content

Commit

Permalink
Next try
Browse files Browse the repository at this point in the history
  • Loading branch information
normanmaurer committed Mar 25, 2024
1 parent c94e739 commit 7e21747
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docker/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ RUN wget -q --no-check-certificate https://github.com/netty/netty-tcnative/relea

RUN rm -rf $SOURCE_DIR

# Downloading and installing SDKMAN!
RUN curl -s -k "https://get.sdkman.io" | bash

ARG java_version="8.0.302-zulu"
ENV JAVA_VERSION $java_version
# Downloading and installing SDKMAN!
RUN echo '-k' > $HOME/.curlrc
RUN curl -s "https://get.sdkman.io" | bash
RUN rm $HOME/.curlrc

# Don't check the certificates as our curl version is too old.
RUN echo 'sdkman_insecure_ssl=true' >> $HOME/.sdkman/etc/config
Expand All @@ -67,6 +67,9 @@ RUN bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && \
rm -rf $HOME/.sdkman/archives/* && \
rm -rf $HOME/.sdkman/tmp/*"

ARG java_version="8.0.302-zulu"
ENV JAVA_VERSION $java_version

RUN echo 'export JAVA_HOME="/root/.sdkman/candidates/java/current"' >> ~/.bashrc
RUN echo 'PATH=$JAVA_HOME/bin:$PATH' >> ~/.bashrc

Expand Down

0 comments on commit 7e21747

Please sign in to comment.