VSCode Container Image for FaasJS projects
Features
- Base on alpine with tiny image size. (Also support debian with
faasjs/vscode:debian
) - Includes latest node, npm and bun.
- Includes ohmyzsh with below plugins:
- git
- zsh-completions
- zsh-autosuggestions
- zsh-history-substring-search
npm
Before you use
- Install latest VSCode.
- Install latest Docker.
- Install VSCode plugin: Remote Containers.
Usage
- Create a folder
.devcontainer
in your project root. - Create
devcontainer.json
in.devcontainer
folder. - Copy below code into
devcontainer.json
:
{
"name": "dev",
// Change faasjs/vscode to faasjs/vscode:debian if you want to use debian.
"image": "faasjs/vscode",
"extensions": [
"eamodio.gitlens",
"faasjs.faasjs-snippets",
"biomejs.biome"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/zsh"
}
}
- Open your project with VSCode.
- Click popup window with
Remote-Containers: Reopen in Container
.