1
0
mirror of synced 2025-12-19 09:57:42 -05:00

Add Copilot CLI feature to devcontainer (#58813)

This commit is contained in:
Devraj Mehta
2025-12-10 16:42:33 -05:00
committed by GitHub
parent e7b6146b90
commit 8a6ed964ea

View File

@@ -12,6 +12,9 @@
// Install features. Type 'feature' in the VS Code command palette for a full list.
"features": {
"sshd": "latest",
"ghcr.io/devcontainers/features/copilot-cli:1": {
"version": "prerelease"
},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
@@ -59,8 +62,6 @@
},
// Lifecycle commands
// Install dependencies then install Copilot CLI
"onCreateCommand": "npm ci && npm install -g @github/copilot@prerelease",
// Start a web server and keep it running
"postStartCommand": "nohup bash -c 'npm start &'",
// Set port 4000 to be public