From e6951333b800a5a5eb9bf7ad168667669a1fe610 Mon Sep 17 00:00:00 2001 From: Michael Robinson Date: Mon, 20 Nov 2023 19:27:36 +1300 Subject: [PATCH] Install java --- build-image/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build-image/Dockerfile b/build-image/Dockerfile index 13d5c6f..ce9cc8a 100644 --- a/build-image/Dockerfile +++ b/build-image/Dockerfile @@ -13,9 +13,20 @@ LABEL "com.github.actions.color"="green" LABEL "repository"="http://github.com/Li357/jekyll-deploy-gh-pages" +# Install NodeJS RUN apt-get update && apt-get install -y ca-certificates curl gnupg RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg ENV NODE_MAJOR=21 RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list RUN apt-get update && apt-get install nodejs -y + +# Install image compressor/manager RUN apt-get install -y libvips + +# Install Java +RUN mkdir -p /usr/share/man/man1/ +RUN apt-get install -y openjdk-8-jdk +RUN apt-get install -y openjdk-8-jre +RUN update-alternatives --config java +RUN update-alternatives --config javac +