diff --git a/Dockerfile b/Dockerfile index e714489d8..ef686317b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,32 @@ # Can be used to create an image with a locally built almond that isn't on maven central yet. ARG LOCAL_IVY=no -FROM almondsh/almond:coursier as local_ivy_yes +FROM jupyter/base-notebook as coursier_base + +USER root + +RUN apt-get -y update && \ + apt-get install --no-install-recommends -y \ + curl \ + openjdk-8-jre-headless \ + ca-certificates-java && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +RUN curl -Lo /usr/local/bin/coursier https://github.com/coursier/coursier/releases/download/v2.0.0-RC3-2/coursier && \ + chmod +x /usr/local/bin/coursier + +USER $NB_UID + +# ensure the JAR of the CLI is in the coursier cache, in the image +RUN /usr/local/bin/coursier --help + +FROM coursier_base as local_ivy_yes USER $NB_UID ONBUILD RUN mkdir -p .ivy2/local/ ONBUILD COPY --chown=1000:100 ivy-local/ .ivy2/local/ -FROM almondsh/almond:coursier as local_ivy_no +FROM coursier_base as local_ivy_no FROM local_ivy_${LOCAL_IVY} ARG ALMOND_VERSION diff --git a/scripts/update-docker-images.sh b/scripts/update-docker-images.sh index 9181d23db..35f1c3bdd 100755 --- a/scripts/update-docker-images.sh +++ b/scripts/update-docker-images.sh @@ -2,7 +2,7 @@ set -e SCALA212_VERSION="$(grep -oP '(?<=def scala212 = ")[^"]*(?