File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,12 +6,10 @@ ENV DEBIAN_FRONTEND=noninteractive
66# Switch to root for installing packages
77USER root
88
9- RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
10-
119# Install additional dependencies
1210RUN 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)
2729RUN pipx install solc-select && \
You can’t perform that action at this time.
0 commit comments