diff --git a/amazon-corretto/Dockerfile b/amazon-corretto/Dockerfile index 824a883..b8d71b3 100644 --- a/amazon-corretto/Dockerfile +++ b/amazon-corretto/Dockerfile @@ -43,10 +43,16 @@ RUN \ chmod -R 755 /usr/share/scala && \ ln -s /usr/share/scala/bin/* /usr/local/bin && \ case $SCALA_VERSION in \ - "3"*) echo "@main def main = println(util.Properties.versionMsg)" > test.scala ;; \ - *) echo "println(util.Properties.versionMsg)" > test.scala ;; \ - esac && \ - scala -nocompdaemon test.scala && rm test.scala + "3"*) \ + echo '@main def main = println(s"Scala library version ${dotty.tools.dotc.config.Properties.versionNumberString}")' > test.scala && \ + # WORKAROUND: tput: terminal attributes: No such device or address + mv /usr/bin/tput /usr/bin/_tput && \ + scala test.scala && rm test.scala && \ + mv /usr/bin/_tput /usr/bin/tput ;; \ + *) \ + echo "println(util.Properties.versionMsg)" > test.scala && \ + scala -nocompdaemon test.scala && rm test.scala ;; \ + esac # Symlink java to have it available on sbtuser's PATH RUN ln -s /opt/java/openjdk/bin/java /usr/local/bin/java