logo
0
0
WeChat Login
refactor(docker): 使用 fnm 替代 nvm 并简化构建流程

workspace-node

Cloud Native Development Environment for Node.js

Software:fnm,pnpm,yarn,bun,git, git-lfs, jq, rsync, curl, vim, wget, unzip, openssh-server

VSCode Plugins: coding-copilot,vscode-yaml,githistory,gitblame,git-graph,vscode-yaml

Docker Image

docker.cnb.cool/examples/workspace-images/workspace-node

Available Image Tags

  • docker.cnb.cool/examples/workspace-images/workspace-node:latest
  • docker.cnb.cool/examples/workspace-images/workspace-node:lts

Usage

Create a .cnb.yml file in the root directory of your repository and add the following content:

$: vscode: - docker: # Custom image as development environment image: docker.cnb.cool/examples/workspace-images/workspace-node:lts services: - vscode - docker stages: - name: ls script: ls -al

For more cloud native development configuration options, please refer to Cloud Native Development.