From e8c4ba14b2b83caf6b47719cdf4618d8b5c2201e Mon Sep 17 00:00:00 2001 From: chiDT Date: Mon, 8 Sep 2025 20:42:16 +0900 Subject: [PATCH] Fix code-server installation using direct binary download MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace install script with direct GitHub binary download - Manually place binary in /usr/local/bin and libs in /usr/local/lib - Add verification steps to ensure proper installation - Resolve issue where code-server was missing after container start 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Dockerfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76728ea..1630c30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,9 +62,17 @@ ENV PATH="/usr/local/bin:${PATH}" RUN apt-get install -y fcitx5 --fix-missing RUN apt-get clean && rm -rf /var/lib/apt/lists/* -## code server -RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --method standalone --prefix=/usr/local -RUN which code-server && code-server --version +## code server - direct binary download +RUN VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest | grep '"tag_name"' | sed -E 's/.*"v([^"]+)".*/\1/') && \ + echo "Installing code-server version: $VERSION" && \ + curl -fL https://github.com/coder/code-server/releases/download/v${VERSION}/code-server-${VERSION}-linux-amd64.tar.gz -o code-server.tar.gz && \ + tar -xzf code-server.tar.gz && \ + mv code-server-${VERSION}-linux-amd64/bin/code-server /usr/local/bin/ && \ + mv code-server-${VERSION}-linux-amd64/lib /usr/local/lib/code-server && \ + rm -rf code-server.tar.gz code-server-${VERSION}-linux-amd64 && \ + chmod +x /usr/local/bin/code-server && \ + ls -la /usr/local/bin/code-server && \ + /usr/local/bin/code-server --version ## PlayWright Chrome RUN npx playwright install chrome