Skip to content

Commit

Permalink
chore(devcontainer): upgrade to Node.js 20 (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoncitylights committed Dec 29, 2023
1 parent 7028553 commit 71ca6a1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.203.0/containers/typescript-node/.devcontainer/base.Dockerfile
# See here for image contents:
# https://github.com/devcontainers/images/tree/main/src/typescript-node

# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 16, 14, 12, 16-bullseye, 14-bullseye, 12-bullseye, 16-buster, 14-buster, 12-buster
ARG VARIANT="16-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon)
# https://mcr.microsoft.com/v2/vscode/devcontainers/javascript-node/tags/list
ARG VARIANT=20-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
Expand Down
22 changes: 13 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.203.0/containers/typescript-node
// https://github.com/devcontainers/images/tree/main/src/typescript-node
{
"name": "Node.js & TypeScript",
"runArgs": [
"--init"
],
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
// Update 'VARIANT' to pick a Node version
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"args": {
"VARIANT": "16-bullseye"
"VARIANT": "20-bullseye"
}
},
"customizations": {
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"waderyan.nodejs-extension-pack"
]
}
},
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"waderyan.nodejs-extension-pack"
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
Expand Down

0 comments on commit 71ca6a1

Please sign in to comment.