1- FROM nvcr.io/nvidia/cuda:11.6.2 -cudnn8-runtime-ubuntu20.04
1+ FROM paddlepaddle/paddle:latest-dev-cuda11.6 -cudnn8.4-trt8.4-gcc82
22
33RUN echo "deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" >> /etc/apt/sources.list
44RUN echo "deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" >> /etc/apt/sources.list
@@ -35,7 +35,7 @@ RUN wget https://mirrors.huaweicloud.com/python/3.9.7/Python-3.9.7.tgz && \
3535RUN python3 -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple && pip install pysdf open3d db-sqlite3 -i https://pypi.tuna.tsinghua.edu.cn/simple
3636
3737# install pymesh and paddle
38- RUN python3 -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple && pip install numpy= =1.22.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
38+ RUN python3 -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple && pip install " numpy>=1.20.0,< =1.23.1" -i https://pypi.tuna.tsinghua.edu.cn/simple
3939COPY ./pymesh.tar.xz /src/pymesh.tar.xz
4040
4141RUN cd /src && \
@@ -50,10 +50,10 @@ ENV PATH="$PATH:/usr/lib/x86_64-linux-gnu/"
5050ENV LD_LIBRARY_PATH="/usr/local/cuda/lib64/:$LD_LIBRARY_PATH"
5151
5252RUN python3 -m ensurepip --upgrade && \
53- pip3 config set global.index-url https://pypi.doubanio.com /simple/ && \
53+ pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn /simple && \
5454 # ensure paddle install normally
55- ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.8 /usr/local/cuda/lib64/libcudnn.so && \
56- ln -s /usr/local/cuda/lib64/libcublas.so.11 /usr/local/cuda/lib64/libcublas.so && \
5755 python3 -m pip install paddlepaddle-gpu==0.0.0.post116 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html
5856
57+ RUN apt-get install -y openssh-server
58+
5959RUN echo 'ldconfig' >> /root/.bashrc
0 commit comments