为了能快速了解并处理您的问题,请提供以下基础信息: 面板、插件版本:2026-04-21 11:42:07 - Linux面板11.7.0
unix地址 unix:///var/run/docker.sock
问题描述:通过“构建镜像”功能构建镜像总是报错无法成功构建。
但使用以下命令则可正常构建:
cd /data/scripts/myhloli_mineru
docker build \
-f docker/china/gcu.Dockerfile \
-t mineru:myhloli-2.7.1 \
.
请排查是否为“构建镜像”功能BUG,Dockerfile内容如下:
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + Enflame GCU.
FROM crpi-vofi3w62lkohhxsp.cn-shanghai.personal.cr.aliyuncs.com/opendatalab-mineru/gcu:docker_images_topsrider_i3x_3.6.20260106_vllm0.11_pytorch2.8.0
# Install Noto fonts for Chinese characters
RUN echo 'deb http://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse\n\
deb http://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse\n\
deb http://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse\n\
deb http://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse' > /tmp/aliyun-sources.list && \
apt-get -o Dir::Etc::SourceList=/tmp/aliyun-sources.list update && \
apt-get -o Dir::Etc::SourceList=/tmp/aliyun-sources.list install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/aliyun-sources.list
# Install mineru latest
RUN python3 -m pip install "mineru[core]>=3.0.0" \
numpy==1.26.4 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip cache purge
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]
|
|