From 83c62ade8843614dee2ea2629756f5771e77b9f2 Mon Sep 17 00:00:00 2001 From: dockermen Date: Fri, 11 Apr 2025 11:03:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=96=87=E4=BB=B6=20Dockerfi?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ide/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.ide/Dockerfile b/.ide/Dockerfile index 762de56..ca3347e 100644 --- a/.ide/Dockerfile +++ b/.ide/Dockerfile @@ -4,6 +4,9 @@ FROM python:3.13.3-alpine ENV DEBIAN_FRONTEND=noninteractive +# 安装 ssh 服务,用于支持 VSCode 客户端通过 Remote-SSH 访问开发环境 +RUN apt-get update && apt-get install -y wget unzip openssh-server curl + RUN pip install uv # 安装 code-server 和扩展(使用 id 安装 python 扩展,使用 vsix 安装包安装 pylance 扩展) RUN curl -fsSL https://code-server.dev/install.sh | sh \ @@ -18,8 +21,7 @@ RUN curl -fsSL https://code-server.dev/install.sh | sh \ && code-server --install-extension marscode.marscode-extension \ && echo done -# 安装 ssh 服务,用于支持 VSCode 客户端通过 Remote-SSH 访问开发环境 -RUN apt-get update && apt-get install -y wget unzip openssh-server + # 指定字符集支持命令行输入中文(根据需要选择字符集) ENV LANG C.UTF-8