Skip to content

Commit

Permalink
Add devcontainer.json and Dockerfile for codespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchv committed Jul 15, 2021
1 parent 1c1180a commit 0f175ac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ARG VARIANT="16-buster"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "16" }
},
"settings": {},
"extensions": [
"redhat.vscode-yaml"
],
"forwardPorts": [],
"postCreateCommand": "npm install",
"postStartCommand": "npm run serve",
"remoteUser": "node"
}

0 comments on commit 0f175ac

Please sign in to comment.