Revert to standard code-server installation script

- Use official install script for code-server
- Add verification step to confirm installation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-08 20:45:56 +09:00
parent e8c4ba14b2
commit f99dc5c72b

View File

@@ -62,17 +62,9 @@ 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 - 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
## code server
RUN curl -fsSL https://code-server.dev/install.sh | sh
RUN which code-server && code-server --version
## PlayWright Chrome
RUN npx playwright install chrome