Skip to content

Commit 55c9f99

Browse files
committed
fix: sudo in node Docker image
1 parent 21c03c7 commit 55c9f99

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

dockerfiles/node/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ FROM ${BASE_IMAGE}
33

44
ARG NODE_VERSION
55

6-
USER vscode
6+
RUN apt-get update -y
77

8-
RUN sudo apt-get update -y
9-
10-
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | sudo -E bash - &&\
11-
sudo apt-get install -y nodejs
8+
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - &&\
9+
apt-get install -y nodejs

0 commit comments

Comments
 (0)