Skip to content

Commit

Permalink
Remove NodeJs dependency from restApi Dockerfile (#3437)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalaiselvi84 authored Oct 19, 2023
1 parent f3ed290 commit e1c646c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions build/build-sdk-images/restapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ RUN wget -q https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz && \

RUN echo '§' && apt-get -qy update

# Import the Nodesource GPG key
RUN apt-get update && \
apt-get install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

# Create deb repository for a specific Node major version
ARG NODE_MAJOR=20
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list

# Update and install Node.js
RUN apt-get update && apt-get install -y nodejs

RUN apt-get install -qq -y openjdk-11-jre > /dev/null

ENV PATH /usr/local/go/bin:/go/bin:$PATH
Expand Down

0 comments on commit e1c646c

Please sign in to comment.