From dacc3d5146212a2ce45e5a5b86f400ab52afd58d Mon Sep 17 00:00:00 2001 From: "cnb.bApmeMoSgJA" Date: Tue, 2 Dec 2025 15:02:29 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20cnb=20=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=AE=B9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ide/Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .ide/Dockerfile diff --git a/.ide/Dockerfile b/.ide/Dockerfile new file mode 100644 index 0000000..f55d6a8 --- /dev/null +++ b/.ide/Dockerfile @@ -0,0 +1,33 @@ +FROM cnbcool/default-build-env:latest + +RUN apt-get update && \ + apt-get install -y wget unzip lsof nload htop net-tools dnsutils openssh-server zsh openssh-server command-not-found && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +WORKDIR /root +RUN git clone https://git.lichx.top/li_chx/shell-config.git && \ + cp -r shell-config/.* . && \ + wget https://download.jetbrains.com/webstorm/WebStorm-2025.2.5.tar.gz && \ + mkdir -p /ide_cnb && \ + tar -zxvf WebStorm-2025.2.5.tar.gz -C /ide_cnb && \ + rm WebStorm-2025.2.5.tar.gz && \ + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \ + source ~/.bashrc && \ + nvm install 24 && \ + npm install --global corepack@latest && \ + corepack enable pnpm && \ + apt update + +# 单独处理 zsh 配置 +RUN zsh -c "source ~/.zshrc" && \ + echo "zsh" >> ~/.bashrc + +RUN curl -fsSL https://code-server.dev/install.sh | sh \ + && code-server --install-extension nuxtr.nuxt-vscode-extentions \ + && code-server --install-extension bradlc.vscode-tailwindcss \ + && code-server --install-extension tencent-cloud.coding-copilot \ + && code-server --install-extension ms-vscode.vs-keybindings + +ENV LANG C.UTF-8 +ENV LANGUAGE C.UTF-8