1
+ FROM paddlepaddle/paddle:latest-dev-rocm4.0-miopen2.11
2
+
3
+ RUN mkdir -p /var/run/sshd /root/.ssh
4
+ # 不使用DNS
5
+ RUN sed -i "s/#UseDNS .*/UseDNS no/" /etc/ssh/sshd_config
6
+ RUN sed -i -r "s/^(.*pam_nologin.so)/#\1/" /etc/pam.d/sshd
7
+ RUN ssh-keygen -A
8
+
9
+ COPY ./Resource/condarc /root/.condarc
10
+ COPY PaddleSlim ./PaddleSlim
11
+ COPY PaddleOCR ./PaddleOCR
12
+ COPY PaddleNLP ./PaddleNLP
13
+ COPY PaddleDetection ./PaddleDetection
14
+ COPY PaddleSeg ./PaddleSeg
15
+ COPY PaddleClas ./PaddleClas
16
+ COPY PaddleSpeech ./PaddleSpeech
17
+ COPY PaddleRec ./PaddleRec
18
+ COPY PaddleHelix ./PaddleHelix
19
+ COPY PaddleScience ./PaddleScience
20
+
21
+
22
+ RUN pip install --no-cache-dir --upgrade pip \
23
+ -i https://mirror.baidu.com/pypi/simple && \
24
+ pip install paddlepaddle-rocm -f \
25
+ https://www.paddlepaddle.org.cn/whl/rocm/develop.html && \
26
+ pip install --no-cache-dir --upgrade jupyter jupyterlab \
27
+ -i https://pypi.tuna.tsinghua.edu.cn/simple/
28
+
29
+ RUN pip install --no-cache-dir --upgrade jupyter jupyterlab ipykernel ipython \
30
+ -i https://pypi.tuna.tsinghua.edu.cn/simple/
31
+
32
+ WORKDIR /opt/PaddleSlim
33
+ RUN pip install --no-cache-dir -r requirements.txt \
34
+ -i https://mirror.baidu.com/pypi/simple
35
+ RUN python setup.py install
36
+
37
+ WORKDIR /opt/PaddleOCR
38
+ RUN pip install --no-cache-dir -r requirements.txt \
39
+ -i https://mirror.baidu.com/pypi/simple
40
+ RUN python setup.py install
41
+
42
+ WORKDIR /opt/PaddleNLP
43
+ RUN pip install --no-cache-dir visualdl regex pybind11 zstandard \
44
+ -i https://mirror.baidu.com/pypi/simple
45
+ RUN pip install --no-cache-dir -r requirements.txt \
46
+ -i https://mirror.baidu.com/pypi/simple
47
+ RUN python setup.py install
48
+
49
+ WORKDIR /opt/PaddleDetection
50
+ RUN pip install --no-cache-dir -r requirements.txt \
51
+ -i https://mirror.baidu.com/pypi/simple
52
+ RUN python setup.py install
53
+
54
+ WORKDIR /opt/PaddleSeg
55
+ RUN pip install --no-cache-dir -r requirements.txt \
56
+ -i https://mirror.baidu.com/pypi/simple
57
+ RUN python setup.py install
58
+
59
+ WORKDIR /opt/PaddleClas
60
+ RUN pip install --no-cache-dir -r requirements.txt \
61
+ -i https://mirror.baidu.com/pypi/simple
62
+
63
+ WORKDIR /opt/PaddleSpeech
64
+ RUN pip install . -i https://mirror.baidu.com/pypi/simple
65
+
66
+ WORKDIR /opt/PaddleHelix
67
+ RUN conda install -c conda-forge openmm=7.5.1 pdbfixer
68
+ RUN pip install pgl networkx sklearn \
69
+ -i https://mirror.baidu.com/pypi/simple
70
+
71
+ WORKDIR /opt/PaddleScience
72
+ RUN pip install -r requirements.txt \
73
+ -i https://mirror.baidu.com/pypi/simple
74
+ ENV PYTHONPATH /opt/PaddleScience
75
+ RUN chmod 777 -R /opt/PaddleScience/examples
76
+
77
+ WORKDIR /opt
78
+
79
+ # ssh
80
+ EXPOSE 22
81
+ # jupyter lab
82
+ EXPOSE 8888
83
+
84
+ CMD ["sleep", "infinity"]
0 commit comments