From 8f92888033fb248e4f765558affbd910c3ca85f8 Mon Sep 17 00:00:00 2001 From: zweien <278954153@qq.com> Date: Mon, 12 Jul 2021 15:40:33 +0800 Subject: [PATCH] ci: update Dockerfile --- Dockerfile | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2dd1ff7..6003b3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,7 @@ FROM pytorch/pytorch:1.7.0-cuda11.0-cudnn8-devel -RUN apt-get update && apt-get install -y openssh-server nfs-common && \ - echo "PermitRootLogin yes" >> /etc/ssh/sshd_config && \ - (echo '123456'; echo '123456') | passwd root - -RUN pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ transforms3d \ - typing \ - numpy \ - keras \ - h5py \ - pandas \ - zipfile36 \ - scikit-optimize \ - pytest \ - sphinx \ - matplotlib \ - myst_parser \ - sphinx_rtd_theme==0.5.2 \ - tensorboard==2.4.1 \ - sympy==1.5.1 \ - pyevtk==1.1.1 \ - flask==1.1.2 \ - requests==2.25.0 \ - networkx==2.5.1 -COPY . /idrlnet/ -RUN cd /idrlnet && pip install -e . -ENTRYPOINT service ssh start && bash \ No newline at end of file +LABEL maintainer="pengwei" +WORKDIR /idrlnet +COPY requirements.txt ./ +RUN pip install -r requirements.txt +COPY . . +RUN pip install -e . \ No newline at end of file