Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Install Java
Browse files Browse the repository at this point in the history
  • Loading branch information
faceleg committed Nov 20, 2023
1 parent e695133 commit 05ec5ee
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,16 @@ 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 apt-get update && apt-get install -y ca-certificates curl gnupg && apt-get clean
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
RUN apt-get update && apt-get install nodejs -y && apt-get clean

# Install image compressor/manager
RUN apt-get install -y libvips
RUN apt-get install -y libvips && apt-get clean

# 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
# Install OpenJDK-11
RUN apt-get install -y default-jre && \
apt-get clean;

0 comments on commit 05ec5ee

Please sign in to comment.