Dockerfile 1.04 KB
Newer Older
chenpangpang's avatar
chenpangpang committed
1
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.3.1-py3.10-cuda11.8-ubuntu22.04-devel as base
chenpangpang's avatar
chenpangpang committed
2
3
4
5
6
7
8
9
10
11
12
ARG IMAGE=mineru
ARG IMAGE_UPPER=MinerU
ARG BRANCH=gpu
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


#########
# Prod  #
#########
chenpangpang's avatar
chenpangpang committed
13
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.3.1-py3.10-cuda11.8-ubuntu22.04-devel
chenpangpang's avatar
chenpangpang committed
14
15
ARG IMAGE=mineru
ARG IMAGE_UPPER=MinerU
chenpangpang's avatar
chenpangpang committed
16
17
18
19
COPY chenyh/$IMAGE/frpc_linux_amd64_* /opt/conda/lib/python3.10/dist-packages/gradio/
RUN chmod +x /opt/conda/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_*
RUN apt-get update && apt-get install -y  libgl1-mesa-glx libglib2.0-0 libsm6 libxrender1 libxext6
COPY --from=base /opt/conda/lib/python3.10/site-packages /opt/conda/lib/python3.10/site-packages
chenpangpang's avatar
chenpangpang committed
20
21
COPY --from=base /root/$IMAGE/$IMAGE_UPPER /root/$IMAGE_UPPER
COPY --from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh  /root/
chenpangpang's avatar
chenpangpang committed
22
COPY --from=base /root/$IMAGE/assets/  /root/assets/