Highlight image metadata, alternates to image ref (#86)
This commit is contained in:
		@@ -3,7 +3,8 @@
 | 
			
		||||
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
 | 
			
		||||
{
 | 
			
		||||
	"name": "Node.js",
 | 
			
		||||
	"image": "mcr.microsoft.com/devcontainers/javascript-node:16-bullseye",
 | 
			
		||||
	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
 | 
			
		||||
	"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18-bullseye",
 | 
			
		||||
 | 
			
		||||
	// Features to add to the dev container. More info: https://containers.dev/features.
 | 
			
		||||
	// "features": {},
 | 
			
		||||
@@ -12,9 +13,9 @@
 | 
			
		||||
	"customizations": {
 | 
			
		||||
		// Configure properties specific to VS Code.
 | 
			
		||||
		"vscode": {
 | 
			
		||||
			"settings": {},			
 | 
			
		||||
			"settings": {},
 | 
			
		||||
			"extensions": [
 | 
			
		||||
				"dbaeumer.vscode-eslint"
 | 
			
		||||
				"streetsidesoftware.code-spell-checker"
 | 
			
		||||
			]
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
@@ -22,18 +23,14 @@
 | 
			
		||||
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
 | 
			
		||||
	// "forwardPorts": [3000],
 | 
			
		||||
 | 
			
		||||
	// Use 'portsAttributes' to set default properties for specific forwarded ports.
 | 
			
		||||
	// Use 'portsAttributes' to set default properties for specific forwarded ports. 
 | 
			
		||||
	// More info: https://containers.dev/implementors/json_reference/#port-attributes
 | 
			
		||||
	"portsAttributes": {
 | 
			
		||||
		"3000": {
 | 
			
		||||
		"9000": {
 | 
			
		||||
			"label": "Hello Remote World",
 | 
			
		||||
			"onAutoForward": "notify"
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	
 | 
			
		||||
	// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'.
 | 
			
		||||
	// "otherPortsAttributes": {
 | 
			
		||||
	// 		"onAutoForward": "silent"
 | 
			
		||||
	// },
 | 
			
		||||
 | 
			
		||||
	// Use 'postCreateCommand' to run commands after the container is created.
 | 
			
		||||
	"postCreateCommand": "yarn install"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user