Skip to content

Commit

Permalink
#12 java 11 default
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 4, 2022
1 parent 2000226 commit 9ad726e
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 @@ -113,10 +113,11 @@ RUN curl --silent --show-error https://getcomposer.org/installer | php && \
RUN php --version

# Java
RUN apt-get install -y ca-certificates openjdk-17-jdk
RUN apt-get install -y ca-certificates openjdk-11-jdk openjdk-17-jdk
RUN update-java-alternatives --set java-1.11.0-openjdk-amd64
ENV MAVEN_OPTS "-Xmx1g"
ENV JAVA_OPTS "-Xmx1g"
ENV JAVA_HOME "/usr/lib/jvm/java-17-openjdk-amd64"
ENV JAVA_HOME "/usr/lib/jvm/java-11-openjdk-amd64"
RUN java --version

# PhantomJS
Expand Down

0 comments on commit 9ad726e

Please sign in to comment.