-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM ubuntu:24.04 | ||
|
||
SHELL ["/bin/bash", "-l", "-c"] | ||
|
||
# Install essential packages | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
build-essential \ | ||
procps \ | ||
file \ | ||
unzip \ | ||
sudo \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create sudoers directory and non-root user | ||
RUN mkdir -p /etc/sudoers.d && \ | ||
useradd -m -s /bin/bash vscode && \ | ||
echo "vscode ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/vscode | ||
|
||
# Switch to non-root user | ||
USER vscode | ||
WORKDIR /home/vscode | ||
|
||
# Install Node | ||
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && \ | ||
sudo apt-get install -y nodejs | ||
|
||
# Install Bun | ||
RUN curl -fsSL https://bun.sh/install | bash | ||
ENV PATH="/home/vscode/.bun/bin:${PATH}" | ||
|
||
# Install Foundry | ||
RUN curl -L https://foundry.paradigm.xyz | bash | ||
RUN /home/vscode/.foundry/bin/foundryup -i nightly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "EthSign: Solidity", | ||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["juanblanco.solidity", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "adpyke.codesnap"] | ||
} | ||
}, | ||
"remoteUser": "vscode", | ||
"features": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters