From 9eb5bae2687d7bbcb001181969f2b9a56cfd7bbe Mon Sep 17 00:00:00 2001 From: arviter Date: Sun, 31 Aug 2025 19:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20template/docker/main.tf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit update file --- template/docker/main.tf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/template/docker/main.tf b/template/docker/main.tf index 65985b3..74079c6 100644 --- a/template/docker/main.tf +++ b/template/docker/main.tf @@ -31,9 +31,12 @@ resource "coder_agent" "main" { startup_script = <<-EOT set -e - # install and start code-server - curl -fsSL http://gitea.92hv.com/arviter/coder-docker/raw/branch/main/template/docker/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0 - /tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 & + + # Install and start mscode (VS Code CLI) + curl -fsSL http://gitea.92hv.com/arviter/coder-docker/raw/branch/main/template/docker/install.sh | sh -s -- --version insider --prefix=/usr/local + + # 启动 VS Code CLI Web + mscode serve-web --accept-server-license-terms --host 0.0.0.0 --port 13337 >/tmp/mscode.log 2>&1 & EOT # These environment variables allow you to make Git commits right away after creating a