Skip to content

Commit

Permalink
Update Node installation in openvidu/openvidu-test-e2e container
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Sep 29, 2023
1 parent ac64aeb commit 796a478
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openvidu-test-e2e/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ RUN apt-get update && apt-get -y upgrade && \
rsync \
software-properties-common \
sudo && \
curl -sL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs && \
# Node
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
NODE_MAJOR=20 && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && apt-get install nodejs -y && \
# Node
npm install -g http-server@latest && \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove --purge -y && apt-get autoclean
Expand Down

0 comments on commit 796a478

Please sign in to comment.