From 281e1943e22b36d73962ea21252c44f6b8688363 Mon Sep 17 00:00:00 2001 From: hubwriter Date: Fri, 19 Sep 2025 14:16:27 +0100 Subject: [PATCH] Update onCreateCommand to install Copilot CLI --- .devcontainer/devcontainer.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 418b37719a..e73182c623 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -59,9 +59,11 @@ }, // Lifecycle commands - "onCreateCommand": "npm ci", + // Install dependencies then install Copilot CLI + "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", + // Start a web server and keep it running "postStartCommand": "nohup bash -c 'npm start &'", - // Set the port to be public + // Set port 4000 to be public "postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"", // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.