Skip to content

Commit

Permalink
Use Dockerfile to allow more custom setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferlund committed Nov 7, 2024
1 parent 3e0ee00 commit 6a0c4db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ghcr.io/dfinity/icp-dev-env:13

RUN apt -yqq install --no-install-recommends wget

RUN rustup component add clippy
RUN rustup component add rustfmt

# Install pnpm
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -

# Configures Git to trust all directories as “safe” within the container, bypassing user ownership checks.
RUN git config --global --add safe.directory '*'

4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "ic-alloy-toolkit",
"image": "ghcr.io/dfinity/icp-dev-env:13",
"build": {
"dockerfile": "Dockerfile"
},
"forwardPorts": [
4943
],
Expand Down

0 comments on commit 6a0c4db

Please sign in to comment.