FROM openjdk:19-jdk-alpine RUN apk add gcompat RUN apk add curl # Download Coursier (https://get-coursier.io/) RUN curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > /usr/bin/cs RUN chmod +x /usr/bin/cs RUN cs setup -y RUN mkdir /workdir WORKDIR /workdir ENV COURSIER_CACHE /workdir CMD ["/usr/bin/cs", "fetch", "--dependency-file", "/packages.txt", "--default=true", "--sources", "--javadoc"]