From 55c9f99cf1e063706680c233dd2e7ce0a90b56b8 Mon Sep 17 00:00:00 2001 From: Yasitha Nadeeshan Date: Sun, 7 Dec 2025 05:06:17 +0530 Subject: [PATCH] fix: sudo in node Docker image --- dockerfiles/node/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dockerfiles/node/Dockerfile b/dockerfiles/node/Dockerfile index 2b01208..13059aa 100644 --- a/dockerfiles/node/Dockerfile +++ b/dockerfiles/node/Dockerfile @@ -3,9 +3,7 @@ FROM ${BASE_IMAGE} ARG NODE_VERSION -USER vscode +RUN apt-get update -y -RUN sudo apt-get update -y - -RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | sudo -E bash - &&\ - sudo apt-get install -y nodejs \ No newline at end of file +RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - &&\ + apt-get install -y nodejs