Skip to content

Commit 06cafbc

Browse files
committed
fix(container): do not install hardhat, install cloc
1 parent 9b12a5f commit 06cafbc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apt update && apt install -y \
2222

2323
# Install Node.js
2424
RUN npm install -g n && n 20.12.0
25-
25+
2626
# Install Solidity compiler using pipx (isolated environment)
2727
RUN pipx install solc-select && \
2828
pipx ensurepath && \
@@ -40,10 +40,13 @@ RUN pipx install solc-select && \
4040
cp -r /root/.solc-select/* /home/vscode/.solc-select/ && \
4141
chown -R vscode:vscode /home/vscode/.solc-select
4242

43-
# Install Hardhat and related tools as root
44-
RUN npm install -g hardhat@2.22.16 @nomicfoundation/hardhat-ethers@3.0.8 ethers@6.13.4 && \
45-
ln -sf /usr/local/lib/node_modules/hardhat/internal/cli/cli.js /usr/local/bin/hardhat && \
46-
chmod +x /usr/local/bin/hardhat
43+
RUN npm install -g ethers@6.13.4
44+
45+
# Install cloc for code analysis
46+
RUN npm install -g cloc
47+
48+
# Install cloc for code analysis
49+
RUN npm install -g cloc
4750

4851
# Install Foundry for Anvil (as root for global installation)
4952
RUN curl -L https://foundry.paradigm.xyz | bash && \

0 commit comments

Comments
 (0)