Dockerfile 1.56 KB
Newer Older
chenpangpang's avatar
chenpangpang committed
1
FROM jupyterlab-pytorch:2.3.0-ubuntu22.04-dtk24.04.2-py3.10-devel as base
chenpangpang's avatar
chenpangpang committed
2
3
ARG IMAGE=kolors-faceid
ARG IMAGE_UPPER=Kolors-FaceID
chenpangpang's avatar
chenpangpang committed
4
ARG BRANCH=dcu
chenpangpang's avatar
chenpangpang committed
5
6
RUN cd /root && git clone -b $BRANCH http://developer.hpccube.com/codes/chenpangpang/$IMAGE.git
WORKDIR /root/$IMAGE/$IMAGE_UPPER
7
RUN apt-get update && apt-get install -y gcc g++
chenpangpang's avatar
chenpangpang committed
8
9
10
11
12
RUN pip install -r requirements.txt
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
chenpangpang's avatar
chenpangpang committed
13
14
15
16

#########
# Prod  #
#########
chenpangpang's avatar
chenpangpang committed
17
FROM jupyterlab-pytorch:2.3.0-ubuntu22.04-dtk24.04.2-py3.10-devel
chenpangpang's avatar
chenpangpang committed
18
19
ARG IMAGE=kolors-faceid
ARG IMAGE_UPPER=Kolors-FaceID
chenpangpang's avatar
chenpangpang committed
20
21
COPY chenyh/$IMAGE/frpc_linux_amd64_v0.3 /opt/conda/lib/python3.10/site-packages/gradio/
RUN chmod +x /opt/conda/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.3
chenpangpang's avatar
chenpangpang committed
22
23
COPY chenyh/$IMAGE/Kwai-Kolors/Kolors /root/$IMAGE_UPPER/Kwai-Kolors/Kolors
COPY chenyh/$IMAGE/Kwai-Kolors/Kolors-IP-Adapter-FaceID-Plus /root/$IMAGE_UPPER/Kwai-Kolors/Kolors-IP-Adapter-FaceID-Plus
chenpangpang's avatar
chenpangpang committed
24
COPY chenyh/$IMAGE/antelopev2 /root/$IMAGE_UPPER/.insightface/models/antelopev2
chenpangpang's avatar
chenpangpang committed
25
RUN apt-get update && apt install -y libglib2.0-dev
chenpangpang's avatar
chenpangpang committed
26
27
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
chenpangpang's avatar
chenpangpang committed
28
COPY --from=base /root/$IMAGE/启动器.ipynb /root/$IMAGE/start.sh /root/$IMAGE/assets /root/