Skip to content

Commit 07cf0fb

Browse files
committed
fix: changing to single node config for consistency
1 parent ec7691f commit 07cf0fb

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ ENV DEBIAN_FRONTEND=noninteractive
66
# Switch to root for installing packages
77
USER root
88

9-
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
10-
119
# Install additional dependencies
1210
RUN apt update && apt install -y \
1311
build-essential \
14-
nodejs \
12+
curl \
1513
jq \
1614
python3 \
1715
python3-pip \
@@ -20,8 +18,12 @@ RUN apt update && apt install -y \
2018
&& apt clean \
2119
&& rm -rf /var/lib/apt/lists/*
2220

23-
# Install Node.js
24-
RUN npm install -g n && n 20.12.0
21+
# Install Node.js 20.x using NodeSource
22+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
23+
apt update && \
24+
apt install -y nodejs && \
25+
apt clean && \
26+
rm -rf /var/lib/apt/lists/*
2527

2628
# Install Solidity compiler using pipx (isolated environment)
2729
RUN pipx install solc-select && \

0 commit comments

Comments
 (0)