Spaces:
Running
Running
File size: 890 Bytes
3b13b0e |
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 |
ARG BASE=nvidia/cuda:12.1.0-devel-ubuntu22.04
FROM ${BASE}
# 设置环境变量
ENV http_proxy=http://host.docker.internal:7890
ENV https_proxy=http://host.docker.internal:7890
ENV DEBIAN_FRONTEND=noninteractive
# 安装系统依赖
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc g++ make git python3 python3-dev python3-pip python3-venv python3-wheel \
espeak-ng libsndfile1-dev nano vim unzip wget xz-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# 设置工作目录
WORKDIR /root/MiniCPM-V/
# 安装 Python 依赖
RUN git clone https://github.com/OpenBMB/MiniCPM-V.git && \
cd MiniCPM-V && \
pip3 install decord && \
pip3 install --no-cache-dir -r requirements.txt && \
pip3 install flash_attn
# 清理代理环境变量
ENV http_proxy=""
ENV https_proxy=""
# 设置 PYTHONPATH
ENV PYTHONPATH="/root/MiniCPM-V/"
|