首页 > 其他分享 >Docker Desktop笔记3(VS Code-dev-containers)

Docker Desktop笔记3(VS Code-dev-containers)

时间:2022-11-03 18:06:43浏览次数:72  
标签:Code nodejs vscode JavaScript dev Desktop VERSION nvm containers

1、VS Code创建开发容器

FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
使用devcontainer.json的变量定义:VARIANT": "3.9-bullseye"
即: mcr.microsoft.com/vscode/devcontainers/python:0-3.9-bullseye
使用devcontainer.json的变量定义:V"NODE_VERSION": "lts/*"
执行:RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
Downloading and installing node v18.12.0
https://nodejs.org/dist/v18.12.0/node-v18.12.0-linux-x64.tar.xz
安装nodejs:安装最新LTS版本:nvm install lts/*


标签:Code,nodejs,vscode,JavaScript,dev,Desktop,VERSION,nvm,containers
From: https://blog.51cto.com/u_3029920/5820622

相关文章

  • ios AppStore 上架流程(Xcode11.5)
     AppStore上架流程前提已经注册苹果开发者账号登录开发者官网https://developer.apple.com/点击account进行登录 点击Certific......
  • 02_vscode自动编译
     生成配置文件tsconfig.jsontsc--init  修改tsconfig.json配置 (以上内容均是学习尚硅谷课程笔记) 启动监视任务终端 > 运行任务 > 监视tsconfig.jso......
  • ios AppStore 上架流程(Xcode11.5)
    AppStore上架流程前提已经注册苹果开发者账号登录开发者官网​​https://developer.apple.com/​​点击account进行登录点击Certificates,Identifiers&Profiles1.首先进......
  • Tableau Desktop for Mac/win(全能数据分析工具)
    怎么分析和处理信息数据呢?不用担心,现为大家带来一款专业的全能数据分析工具TableauDesktop,可以让用户将海量数据导入并记性汇总,并且支持多种数据类型,比如像是编程常用的键......
  • LeetCode 283 Move Zeroes
    Givenanintegerarraynums,moveall0'stotheendofitwhilemaintainingtherelativeorderofthenon-zeroelements.Notethatyoumustdothisin-placew......
  • Manthan, Codefest 18 (rated, Div. 1 + Div. 2) (E,F,G)
    LinkEm次操作,每次加边后询问最大旅行团。旅行团的定义:旅行团中的每个人都至少有k个邻接点在团里。显然会肯定很想全选,但是有的人压根没有k个邻接点,只能直接删掉,然后一......
  • [LeetCode] 1668. Maximum Repeating Substring
    Forastring sequence,astring word is k-repeating if word concatenated k timesisasubstringof sequence.The word's maximum k-repeatingvalue......
  • leetcode - 94. 二叉树的中序遍历
    94.二叉树的中序遍历List<Integer>inorder=newArrayList<>();publicList<Integer>inorderTraversal(TreeNoderoot){wit......
  • leetcode257-二叉树的所有路径
    257.二叉树的所有路径 泪目,自己写出的递归遍历./***Definitionforabinarytreenode.*structTreeNode{*intval;*TreeNode*left;*......
  • Codeforces Round #610 (Div. 2) C
    C.PetyaandExamhttps://codeforces.com/contest/1282/problem/C考虑贪心先对于时间排序然后贪心我们可以不考那我们可以在此之前离开然后在离开之前这段时间多做......