From c7acbb0cf38f15095aee2f44f3e4557dc3a987fb Mon Sep 17 00:00:00 2001 From: Chris Stenkamp Date: Mon, 28 Feb 2022 15:57:04 +0100 Subject: [PATCH] nbviewer or binder maybe --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9e9851..a458b1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,11 +29,9 @@ ENV CREATE_GID=${gid} ENV CONTAINER_GIT_COMMIT=${git_commit} # graphviz and torch for python 3.10 are problematic, so I need to set up manual stuff -RUN pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html +RUN pip3 install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html RUN apt install graphviz libgraphviz-dev pkg-config python-pygraphviz -y -RUN ln -sf /usr/local/bin/python3 /usr/bin/python3 -#RUN ln -sf /usr/bin/python3 /usr/bin/python #https://stackoverflow.com/a/44967506/5122790 RUN python3 -m pip install --upgrade pip RUN ln -sf /usr/bin/pip3 /usr/bin/pip RUN pip install -r ./requirements-dev.txt @@ -41,6 +39,10 @@ RUN pip install -r ./requirements.txt RUN pip install . RUN python3 -m jupyter labextension install jupyterlab-plotly@5.3.1 +#https://stackoverflow.com/a/44967506/5122790: this only after the rests +# RUN ln -sf /usr/local/bin/python3 /usr/bin/python3 +RUN ln -sf /usr/bin/python3 /usr/bin/python + RUN groupadd -g ${gid:-1000} developer \ && useradd -l -g developer -u ${uid:-1000} -m developer #see https://github.com/moby/moby/issues/5419#issuecomment-41478290