Skip to content

Commit

Permalink
Update Dockerfile nodejs installation
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Sep 2, 2023
1 parent e99a43d commit 362c861
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@ FROM openjdk:8-jdk-slim as builder

USER root

ENV NODE_MAJOR 20
ENV ANT_VERSION 1.10.13
ENV ANT_HOME /etc/ant-${ANT_VERSION}

WORKDIR /tmp

RUN apt-get update && apt-get install -y \
git \
curl
curl \
ca-certificates \
gnupg

RUN mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
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 && \
apt-get update && \
apt-get install nodejs -y

RUN curl -L -o apache-ant-${ANT_VERSION}-bin.tar.gz http://www.apache.org/dist/ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz \
&& mkdir ant-${ANT_VERSION} \
Expand All @@ -23,9 +32,9 @@ RUN curl -L -o apache-ant-${ANT_VERSION}-bin.tar.gz http://www.apache.org/dist/a

ENV PATH ${PATH}:${ANT_HOME}/bin

RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& curl -L https://www.npmjs.com/install.sh | sh
# RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - \
# && apt-get install -y nodejs \
# && curl -L https://www.npmjs.com/install.sh | sh

FROM builder as tei

Expand Down

0 comments on commit 362c861

Please sign in to comment.