Dockerfile 1.33 KB
Newer Older
chenpangpang's avatar
chenpangpang committed
1
2
3
4
5
6
7
FROM image.sourcefind.cn:5000/dcu/admin/base/jupyterlab-pytorch:2.3.0-ubuntu22.04-dtk24.04.2-py3.10-devel as base
ARG IMAGE=photomaker-v2
ARG IMAGE_UPPER=PhotoMaker-V2
ARG BRANCH=dcu
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
10
11
RUN wget --no-check-certificate  --content-disposition \
    'https://cancon.hpccube.com:65024/directlink/4/onnxruntime/DAS1.2/onnxruntime-1.15.0+das.opt1.dtk24042-cp310-cp310-manylinux_2_28_x86_64.whl' && \
    pip install onnxruntime-1.15.0+das.opt1.dtk24042-cp310-cp310-manylinux_2_28_x86_64.whl
RUN pip install numpy==1.24.4 'scipy<1.13.0' opencv-python==3.4.*
chenpangpang's avatar
chenpangpang committed
12
13
14
15
16
17
18

#########
# Prod  #
#########
FROM image.sourcefind.cn:5000/dcu/admin/base/jupyterlab-pytorch:2.3.0-ubuntu22.04-dtk24.04.2-py3.10-devel
ARG IMAGE=photomaker-v2
ARG IMAGE_UPPER=PhotoMaker-V2
19
20
COPY chenyh/$IMAGE/frpc_linux_amd64_v* /opt/conda/lib/python3.10/site-packages/gradio/
RUN chmod +x /opt/conda/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v*
chenpangpang's avatar
chenpangpang committed
21
22
23
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/
24
COPY --from=base /root/$IMAGE/assets/  /root/assets/