Skip to content

Commit 281e194

Browse files
authored
Update onCreateCommand to install Copilot CLI
1 parent d02ff17 commit 281e194

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@
5959
},
6060

6161
// Lifecycle commands
62-
"onCreateCommand": "npm ci",
62+
// Install dependencies then install Copilot CLI
63+
"onCreateCommand": "npm ci && npm config set \"//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\" && npm config set \"@github:registry=https://npm.pkg.github.com/\" && npm install -g @github/copilot",
64+
// Start a web server and keep it running
6365
"postStartCommand": "nohup bash -c 'npm start &'",
64-
// Set the port to be public
66+
// Set port 4000 to be public
6567
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",
6668

6769
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.

0 commit comments

Comments
 (0)