Dockerfile 1.3 KB
Newer Older
1
FROM image.sourcefind.cn:5000/dcu/admin/base/jupyterlab-pytorch:2.3.0-ubuntu22.04-dtk24.04.2-py3.10-devel as base
chenpangpang's avatar
chenpangpang committed
2
3
ARG IMAGE=minicpm-v-2_6
ARG IMAGE_UPPER=MiniCPM-V-2_6
chenpangpang's avatar
chenpangpang committed
4
ARG BRANCH=dcu
chenpangpang's avatar
chenpangpang committed
5
6
7
RUN cd /root && git clone -b $BRANCH http://developer.hpccube.com/codes/chenpangpang/$IMAGE.git
WORKDIR /root/$IMAGE/$IMAGE_UPPER
RUN pip install -r requirements.txt
8
9
RUN wget --no-check-certificate --content-disposition 'https://cancon.hpccube.com:65024/directlink/4/flash_attn/DAS1.2/flash_attn-2.0.4+das.opt2.dtk24042-cp310-cp310-manylinux_2_28_x86_64.whl'
RUN pip install flash_attn-*.whl && rm flash_attn-*.whl
chenpangpang's avatar
chenpangpang committed
10
11
12
13

#########
# Prod  #
#########
14
FROM image.sourcefind.cn:5000/dcu/admin/base/jupyterlab-pytorch:2.3.0-ubuntu22.04-dtk24.04.2-py3.10-devel
chenpangpang's avatar
chenpangpang committed
15
16
ARG IMAGE=minicpm-v-2_6
ARG IMAGE_UPPER=MiniCPM-V-2_6
17
18
COPY chenyh/$IMAGE/frpc_linux_amd64_v0.2 /opt/conda/lib/python3.10/site-packages/gradio/
RUN chmod +x /opt/conda/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.2
chenpangpang's avatar
chenpangpang committed
19
COPY chenyh/$IMAGE/openbmb/MiniCPM-V-2_6 /root/$IMAGE_UPPER/openbmb/MiniCPM-V-2_6
20
COPY --from=base /opt/conda/lib/python3.10/site-packages /opt/conda/lib/python3.10/site-packages
chenpangpang's avatar
chenpangpang committed
21
22
COPY --from=base /root/$IMAGE/$IMAGE_UPPER /root/$IMAGE_UPPER
COPY --from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh  /root/
23
COPY --from=base /root/$IMAGE/assets/  /root/assets/