File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,10 @@ ENV DEBIAN_FRONTEND=noninteractive
6
6
# Switch to root for installing packages
7
7
USER root
8
8
9
- RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
10
-
11
9
# Install additional dependencies
12
10
RUN apt update && apt install -y \
13
11
build-essential \
14
- nodejs \
12
+ curl \
15
13
jq \
16
14
python3 \
17
15
python3-pip \
@@ -20,8 +18,12 @@ RUN apt update && apt install -y \
20
18
&& apt clean \
21
19
&& rm -rf /var/lib/apt/lists/*
22
20
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/*
25
27
26
28
# Install Solidity compiler using pipx (isolated environment)
27
29
RUN pipx install solc-select && \
@@ -59,9 +61,10 @@ RUN curl -L https://foundry.paradigm.xyz | bash && \
59
61
chmod 755 /usr/local/bin/forge && \
60
62
chmod 755 /usr/local/bin/chisel
61
63
62
- # Set up yarn
64
+ # Set up yarn and pnpm
63
65
RUN corepack enable && \
64
- corepack prepare yarn@4.0.2 --activate
66
+ corepack prepare yarn@4.0.2 --activate && \
67
+ corepack prepare pnpm@9.0.6 --activate
65
68
66
69
# Ensure all users have access to the tools
67
70
RUN chmod 755 /usr/local/bin/* && \
Original file line number Diff line number Diff line change @@ -36,8 +36,14 @@ services:
36
36
- vscode-data:/home/vscode/.local/share
37
37
- vscode-bin:/home/vscode/.local/bin
38
38
39
+ # Shared pnpm cache (safe due to content-addressable storage)
40
+ - pnpm-store:/home/vscode/.local/share/pnpm
41
+ - pnpm-cache:/home/vscode/.cache/pnpm
42
+
39
43
volumes :
40
44
vscode-cache :
41
45
vscode-config :
42
46
vscode-data :
43
47
vscode-bin :
48
+ pnpm-store :
49
+ pnpm-cache :
Original file line number Diff line number Diff line change 1
- #! /bin/env bash
1
+ #! /usr/ bin/env bash
2
2
# Automatically configure Git to use SSH signing with forwarded SSH keys
3
3
set -euo pipefail
4
4
You can’t perform that action at this time.
0 commit comments