fix: add vscode-server dir to Dockerfile, use vscode event for SSH

This commit is contained in:
shuiyu1123 committed 2026-06-18 20:18:20 +00:00
1 parent c6ff7be55a
commit 7b47faac50
2 files changed
+28 -17

No files matched your search

+7 -3
View File
@@ -1,11 +1,15 @@
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
# 基础工具
RUN apt-get update && apt-get install -y git curl wget nano && rm -rf /var/lib/apt/lists/*
# 安装必要工具
RUN apt-get update && apt-get install -y git curl wget nano openssh-server \
&& rm -rf /var/lib/apt/lists/*
# tqdm用于进度条
# pip依赖
RUN pip install --no-cache-dir tqdm numpy requests
# 创建 vscode-server 需要的目录
RUN mkdir -p /root/.vscode-server /root/.vscode-server/data/Machine
# 设置工作目录
WORKDIR /workspace