更新 template/docker/main.tf

update file
This commit is contained in:
2025-08-31 19:20:09 +08:00
parent 6192318f45
commit 9eb5bae268

View File

@@ -31,9 +31,12 @@ resource "coder_agent" "main" {
startup_script = <<-EOT startup_script = <<-EOT
set -e 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 # Install and start mscode (VS Code CLI)
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 & 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 EOT
# These environment variables allow you to make Git commits right away after creating a # These environment variables allow you to make Git commits right away after creating a