Skip to content

Commit cd3273e

Browse files
committed
Dockerfile: install nvm and node as admin
1 parent 546d7e1 commit cd3273e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
FROM debian:bullseye-slim AS base-with-deps
22
ARG USERNAME=vscode
33
RUN apt-get update && apt-get install -y curl
4-
RUN groupadd -r $USERNAME \
5-
&& useradd --no-log-init -rm -d /home/$USERNAME -s /bin/bash -g $USERNAME $USERNAME
6-
USER $USERNAME
74
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash \
85
&& . ~/.nvm/nvm.sh \
96
&& nvm install --lts=hydrogen
7+
RUN groupadd -r $USERNAME \
8+
&& useradd --no-log-init -rm -d /home/$USERNAME -s /bin/bash -g $USERNAME $USERNAME
9+
USER $USERNAME
1010
WORKDIR /home/$USERNAME
1111

1212
# copy local repo into a volume

0 commit comments

Comments
 (0)