Commit 99eff16d authored by chenpangpang's avatar chenpangpang
Browse files

feat: update dockerfile

parent e89652f2
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.1.2-py3.10-cuda11.8-ubuntu22.04 as base
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.3.1-py3.10-cuda11.8-ubuntu22.04-devel as base
ARG IMAGE=mineru
ARG IMAGE_UPPER=MinerU
ARG BRANCH=gpu
......@@ -10,12 +10,13 @@ RUN pip install -r requirements.txt
#########
# Prod #
#########
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.1.2-py3.10-cuda11.8-ubuntu22.04
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.3.1-py3.10-cuda11.8-ubuntu22.04-devel
ARG IMAGE=mineru
ARG IMAGE_UPPER=MinerU
COPY chenyh/$IMAGE/frpc_linux_amd64_v0.2 /usr/local/lib/python3.10/dist-packages/gradio/
RUN chmod +x /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2
COPY --from=base /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
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
COPY --from=base /root/$IMAGE/$IMAGE_UPPER /root/$IMAGE_UPPER
COPY --from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh /root/
COPY --from=base /root/$IMAGE/assets /root/assets
COPY --from=base /root/$IMAGE/assets/ /root/assets/
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment