Dockerfile 1.66 KB
Newer Older
chenpangpang's avatar
chenpangpang committed
1
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-py3.10-cuda12.1-ubuntu22.04-devel as base
chenpangpang's avatar
chenpangpang committed
2
3
4
5
6
ARG IMAGE=instantmesh
ARG IMAGE_UPPER=InstantMesh
ARG BRANCH=gpu
RUN cd /root && git clone -b $BRANCH http://developer.hpccube.com/codes/chenpangpang/$IMAGE.git
WORKDIR /root/$IMAGE/$IMAGE_UPPER
chenpangpang's avatar
chenpangpang committed
7
RUN pip install Ninja triton && pip install xformers==0.0.24 --index-url https://download.pytorch.org/whl/cu121
chenpangpang's avatar
chenpangpang committed
8
9
10
11
12
13
RUN pip install -r requirements.txt


#########
# Prod  #
#########
chenpangpang's avatar
chenpangpang committed
14
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-py3.10-cuda12.1-ubuntu22.04-devel
chenpangpang's avatar
chenpangpang committed
15
16
ARG IMAGE=instantmesh
ARG IMAGE_UPPER=InstantMesh
chenpangpang's avatar
chenpangpang committed
17
RUN apt-get update && apt-get install -y build-essential
chenpangpang's avatar
chenpangpang committed
18
19
20
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
COPY chenyh/$IMAGE/sudo-ai/zero123plus-v1.2 /root/$IMAGE_UPPER/sudo-ai/zero123plus-v1.2
chenpangpang's avatar
chenpangpang committed
21
22
23
24
COPY chenyh/$IMAGE/TencentARC/InstantMesh/diffusion_pytorch_model.bin /root/$IMAGE_UPPER/TencentARC/InstantMesh/diffusion_pytorch_model.bin
COPY chenyh/$IMAGE/TencentARC/InstantMesh/instant_mesh_large.ckpt /root/$IMAGE_UPPER/TencentARC/InstantMesh/instant_mesh_large.ckpt
COPY chenyh/$IMAGE/facebook/dino-vitb16 /root/$IMAGE_UPPER/facebook/dino-vitb16
COPY chenyh/$IMAGE/u2net.onnx /root/.u2net/u2net.onnx
chenpangpang's avatar
chenpangpang committed
25
COPY --from=base /opt/conda/lib/python3.10/site-packages /opt/conda/lib/python3.10/site-packages
chenpangpang's avatar
chenpangpang committed
26
RUN echo 'export PATH=/opt/conda/lib/python3.10/site-packages/ninja/data/bin:$PATH' >> /root/.bashrc
chenpangpang's avatar
chenpangpang committed
27
28
COPY --from=base /root/$IMAGE/$IMAGE_UPPER /root/$IMAGE_UPPER
COPY --from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh /root/