Skip to content

Commit 9b89fd4

Browse files
authored
Add devcontainer for easy development setup
1 parent b1f1564 commit 9b89fd4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.devcontainer/devcontainer.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
3+
{
4+
"name": "Node.js",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
10+
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
"forwardPorts": [3000],
13+
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
//write post create command npm install & npm run hot
16+
"postCreateCommand": "npm install"
17+
18+
// Configure tool-specific properties.
19+
// "customizations": {},
20+
21+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
22+
// "remoteUser": "root"
23+
}

0 commit comments

Comments
 (0)