Dockerfile 880 Bytes
Newer Older
1
2
FROM image.sourcefind.cn:5000/dcu/admin/base/jupyterlab-pytorch:2.1.0-ubuntu20.04-dtk24.04.1-py3.10 as base
RUN cd /root && git clone -b dcu http://developer.hpccube.com/codes/chenpangpang/kolors.git
chenpangpang's avatar
chenpangpang committed
3
WORKDIR /root/kolors/Kolors
4
RUN pip install -r requirements.txt && python3 setup.py install
chenpangpang's avatar
chenpangpang committed
5
6
7
8
9
RUN rm -r build dist kolors.egg-info

#########
# Prod  #
#########
chenpangpang's avatar
chenpangpang committed
10
FROM image.sourcefind.cn:5000/dcu/admin/base/jupyterlab-pytorch:2.1.0-ubuntu20.04-dtk24.04.1-py3.10
11
COPY --from=base /opt/conda/lib/python3.10/site-packages /opt/conda/lib/python3.10/site-packages
chenpangpang's avatar
chenpangpang committed
12
13
COPY --from=base /root/kolors/Kolors /root/Kolors
COPY --from=base /root/kolors/启动器.ipynb /root/kolors/run.sh /root/
14
RUN mkdir /root/Kolors/weights
chenpangpang's avatar
chenpangpang committed
15
# 模型仓库http://113.200.138.88:18080/aimodels/Kolors.git,放置在/public/home/openaimodels/dockerFileTemp/chenyh
16
COPY chenyh/Kolors /root/Kolors/weights/Kolors
chenpangpang's avatar
chenpangpang committed
17