From 5ab2e388d1f76d92a80a01a3f407f8094c75c732 Mon Sep 17 00:00:00 2001 From: Shirish Pothi <183252392+shirishpothi@users.noreply.github.com> Date: Wed, 24 Dec 2025 12:31:31 +0800 Subject: [PATCH 1/2] Add devcontainer configuration for Copilot API Proxy --- .devcontainer/devcontainer.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..0987f1a99 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "Copilot API Proxy", + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", + "features": { + "ghcr.io/devcontainers-contrib/features/bun:1": { + "version": "latest" + } + }, + "forwardPorts": [4141], + "portsAttributes": { + "4141": { + "label": "Copilot API", + "onAutoForward": "notify" + } + }, + "postCreateCommand": "bun install", + "customizations": { + "vscode": { + "extensions": [ + "ovyerus.bun-vscode" + ] + } + } +} From 331cce29874d7a46ac063b4d082cf353b8051b7d Mon Sep 17 00:00:00 2001 From: Shirish Pothi <183252392+shirishpothi@users.noreply.github.com> Date: Wed, 24 Dec 2025 12:37:31 +0800 Subject: [PATCH 2/2] Update devcontainer configuration for Bun setup --- .devcontainer/devcontainer.json | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0987f1a99..5a07dc2fb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,11 +1,6 @@ { "name": "Copilot API Proxy", - "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye", - "features": { - "ghcr.io/devcontainers-contrib/features/bun:1": { - "version": "latest" - } - }, + "image": "mcr.microsoft.com/devcontainers/javascript-node:20-bookworm", "forwardPorts": [4141], "portsAttributes": { "4141": { @@ -13,7 +8,10 @@ "onAutoForward": "notify" } }, - "postCreateCommand": "bun install", + "postCreateCommand": "curl -fsSL https://bun.sh/install | bash && export BUN_INSTALL=\"$HOME/.bun\" && export PATH=\"$BUN_INSTALL/bin:$PATH\" && bun install", + "remoteEnv": { + "PATH": "${containerEnv:PATH}:/home/node/.bun/bin" + }, "customizations": { "vscode": { "extensions": [