FROM python:3.10

# install vscode and extension
RUN curl -fsSL https://code-server.dev/install.sh | sh &&\
    curl -fsSL https://bun.sh/install | bash &&\
    code-server --install-extension ms-python.python  &&\
    code-server --install-extension ms-ceintl.vscode-language-pack-zh-hans &&\
    code-server --install-extension ms-toolsai.jupyter &&\
    code-server --install-extension Tencent-Cloud.coding-copilot &&\
    code-server --install-extension cnbcool.cnb-welcome &&\
    code-server --install-extension redhat.vscode-yaml &&\
    code-server --install-extension eamodio.gitlens &&\
    code-server --install-extension fedaykindev.openchamber &&\
    echo done

# 2. 关键步骤：将 Bun 的路径写入环境变量
ENV PATH="/root/.bun/bin:${PATH}"

# 安装 ssh 服务，用于支持 vscode 客户端通过 remote-ssh 访问开发环境
RUN apt-get update && apt-get install -y wget unzip openssh-server vim && bun add -g opencode-ai @openchamber/web

# 指定字符集支持命令行输入中文（根据需要选择字符集）
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8