"src/vscode:/vscode.git/clone" did not exist on "b41c1f0126cb29016e8707b97ab23374c6267d33"
Dockerfile 944 Bytes
Newer Older
jerrrrry's avatar
jerrrrry committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 使用官方光源基础镜像
FROM image.sourcefind.cn:5000/dcu/admin/base/custom:vllm0.8.5-ubuntu22.04-dtk25.04-rc7-das1.5-py3.10-20250521-fixpy-rocblas0521-beta2

# 安装基础工具
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    iproute2 \
    dmidecode \
    ipmitool \
    git \
    curl \
    jq \
    lshw \
    iputils-ping \
    pciutils \
    && rm -rf /var/lib/apt/lists/*

# 创建目录结构
RUN mkdir -p /workspace/scripts && \
    mkdir -p /workspace/test/env_check_outputs

# 复制脚本并设置权限
COPY ./scripts/run_envcheck.sh /workspace/scripts/

# 验证脚本可执行性
RUN ls -l /workspace/scripts/ && \
    file /workspace/scripts/run_envcheck.sh && \
    head -n 1 /workspace/scripts/run_envcheck.sh  # 检查shebang

# 设置工作目录(建议直接设为脚本目录)
WORKDIR /workspace/scripts/

# 直接执行脚本(无需cd)
CMD bash -c "\
  bash run_envcheck.sh"