init git
This commit is contained in:
commit
2bb66c9c8b
|
@ -0,0 +1,6 @@
|
|||
FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye
|
||||
RUN useradd --groups sudo --no-create-home --shell /bin/bash node \
|
||||
&& echo "node ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/node \
|
||||
&& chmod 0440 /etc/sudoers.d/node
|
||||
RUN sh -c "$(curl -fsSL https://starship.rs/install.sh)" -y -f && echo 'eval "$(starship init bash)"' >> /home/node/.bashrc
|
||||
RUN npm install cnpm -g && cnpm install tsx rimraf @antfu/ni -g
|
|
@ -0,0 +1,29 @@
|
|||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
|
||||
{
|
||||
"name": "Ts Dev",
|
||||
"build":{
|
||||
"dockerfile": "./Dockerfile"
|
||||
},
|
||||
"workspaceFolder": "/workspace",
|
||||
|
||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||
// "features": {},
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
// "postCreateCommand": "ni",
|
||||
|
||||
// Configure tool-specific properties.
|
||||
"customizations": {
|
||||
// Configure properties specific to VS Code.
|
||||
"vscode": {
|
||||
"extensions": ["chenglou92.rescript-vscode"]
|
||||
}
|
||||
}
|
||||
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
}
|
Loading…
Reference in New Issue