Skip to content

Commit

Permalink
Fix JAVA_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenMayer committed Oct 30, 2023
1 parent fa57997 commit be38241
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ RUN apt-get update && apt-get -y install \
FROM jre as jdk
ARG JAVA_VERSION

ENV JAVA_HOME ""

# see https://adoptium.net/installation/linux/
RUN apt update && apt install -y wget apt-transport-https \
RUN unset JAVA_HOME \
&& apt update && apt install -y wget apt-transport-https \
&& mkdir -p /etc/apt/keyrings \
&& wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc \
&& echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list \
Expand Down

0 comments on commit be38241

Please sign in to comment.