Using a even minimal docker file:
FROM circleci/openjdk:8u181-jdk RUN sbt sbtVersion
docker build .
In a directory containing only the
Dockerfile, I get a
java.lang.OutOfMemoryError: GC overhead limit exceeded
This also happens with more complicated Dockerfiles, the example above was just the smallest example in which I could reproduce the problem when diagnosing.
I’ve tried several tagged versions starting
circleci/openjdk:8 - all have failed with the same error