Skip to content

Commit 546d7e1

Browse files
committed
Dockerfile: target bullseye slim, install nodejs with nvm, update packages and install curl
1 parent a479d4f commit 546d7e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
FROM node:16-bullseye AS base-with-deps
2-
1+
FROM debian:bullseye-slim AS base-with-deps
32
ARG USERNAME=vscode
4-
5-
# setup the vscode user for the developer
3+
RUN apt-get update && apt-get install -y curl
64
RUN groupadd -r $USERNAME \
75
&& useradd --no-log-init -rm -d /home/$USERNAME -s /bin/bash -g $USERNAME $USERNAME
86
USER $USERNAME
7+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash \
8+
&& . ~/.nvm/nvm.sh \
9+
&& nvm install --lts=hydrogen
910
WORKDIR /home/$USERNAME
1011

1112
# copy local repo into a volume

0 commit comments

Comments
 (0)