Skip to content

Commit

Permalink
chore: support devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
thonatos committed Feb 8, 2024
1 parent 809ddf1 commit 3ced864
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm

ARG ZSH_CONFIG="/root/.zshrc"

RUN \
apt-get update \
&& apt-get install -y git-extras vim \
&& npm install -g @microsoft/[email protected] \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& echo "source /root/.cargo/env" >> $ZSH_CONFIG

USER root
16 changes: 16 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Name": "Node.js 20.x",
"build": {
"dockerfile": "Dockerfile"
},
"extensions": [
"christian-kohler.path-intellisense",
"davidanson.vscode-markdownlint",
"eamodio.gitlens",
"editorconfig.editorconfig",
"mikestead.dotenv",
"redhat.vscode-yaml"
],
"forwardPorts": [7001],
"remoteUser": "root"
}

0 comments on commit 3ced864

Please sign in to comment.