Skip to content

Commit 7a938b7

Browse files
committed
[devcontainer] update node
1 parent 485faa4 commit 7a938b7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2020
libffi-dev \
2121
libgdbm-dev \
2222
sqlite3 \
23+
&& apt-get clean \
24+
&& rm -rf /var/lib/apt/lists/*
25+
26+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
27+
28+
RUN apt-get update && apt-get install -y --no-install-recommends \
2329
nodejs \
24-
npm \
2530
chromium \
2631
chromium-driver \
2732
&& apt-get clean \
2833
&& rm -rf /var/lib/apt/lists/*
2934

35+
# Verify Node.js and npm installation
36+
RUN node --version && npm --version
37+
3038
RUN echo "sentry ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/sentry \
3139
&& chmod 0440 /etc/sudoers.d/sentry
3240

0 commit comments

Comments
 (0)