Ai
11 Star 0 Fork 1

openEuler/mcp-testkit
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
沈悦 提交于 2025-10-10 14:37 +08:00 . add dockerfile
FROM openeuler/openeuler
LABEL maintainer="shenyue24@huawei.com"
# 基础包安装
RUN dnf update -y && \
dnf install -y --setopt=install_weak_deps=False \
wget \
findutils \
sudo \
libtool-ltdl \
container-selinux \
libseccomp \
glibc \
lvm2 \
docker-client && \
dnf clean all && \
rm -rf /var/cache/dnf/* && \
find /var/log -type f -delete && \
rm -rf /tmp/* /var/tmp/* && \
rm -rf /var/lib/dnf/history/*
# 安装Miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py311_25.7.0-2-Linux-x86_64.sh -O miniconda.sh && \
bash miniconda.sh -b -p /opt/conda && \
rm -f miniconda.sh && \
/opt/conda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
/opt/conda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r && \
/opt/conda/bin/conda clean -afy && \
/opt/conda/bin/conda init bash && \
echo "conda config --set auto_activate_base true" >> ~/.bashrc && \
echo "conda config --set notify_outdated_conda false" >> ~/.bashrc
ENV PATH="/opt/conda/bin:$PATH"
# 预配置pip镜像源
RUN mkdir -p /root/.pip && \
printf '[global]\nindex-url = https://pypi.tuna.tsinghua.edu.cn/simple/\ntrusted-host = pypi.tuna.tsinghua.edu.cn\ntimeout = 300\nretries = 3\n' > /root/.pip/pip.conf && \
echo "pip镜像源预配置完成"
# 预安装常用的Python包,避免每次都重复安装
RUN pip install --no-cache-dir \
numpy \
pandas \
scipy \
matplotlib \
seaborn \
scikit-learn \
uv \
mcp==1.4.0 \
&& echo "常用Python包预安装完成"
RUN conda --version && \
python --version && \
pip --version
# 设置工作目录
WORKDIR /app
CMD ["/bin/bash"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/mcp-testkit.git
git@gitee.com:openeuler/mcp-testkit.git
openeuler
mcp-testkit
mcp-testkit
master

搜索帮助