Dockerfile 1016 Bytes
Newer Older
chenpangpang's avatar
chenpangpang committed
1
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04 as base
chenpangpang's avatar
chenpangpang committed
2
3
RUN cd /root && git clone -b dev http://developer.hpccube.com/codes/chenpangpang/kolors.git
WORKDIR /root/kolors/Kolors
chenpangpang's avatar
chenpangpang committed
4
5
6
7
8
9
10
11
12
RUN conda create --name kolors -y python=3.8 && source activate kolors && pip install -r requirements.txt && python3 setup.py install
RUN rm -r build dist kolors.egg-info

#########
# Prod  #
#########
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-python3.10-cuda12.1-ubuntu22.04
RUN conda create --name kolors python=3.8
COPY --from=base /opt/conda/envs/kolors/lib/python3.8/site-packages /opt/conda/envs/kolors/lib/python3.8/site-packages
chenpangpang's avatar
chenpangpang committed
13
14
15
16
17
18
COPY --from=base /root/kolors/Kolors /root/Kolors
COPY --from=base /root/kolors/启动器.ipynb /root/kolors/run.sh /root/
RUN mkdir /root/Kolors/weight
# 模型仓库http://113.200.138.88:18080/aimodels/Kolors.git,放置在/public/home/openaimodels/dockerFileTemp/chenyh
COPY chenyh/Kolors /root/Kolors/weight/Kolors