Skip to content

Commit

Permalink
nbviewer or binder maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
cstenkamp committed Feb 28, 2022
1 parent c7c5bc5 commit c7acbb0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,20 @@ 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
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
Expand Down

0 comments on commit c7acbb0

Please sign in to comment.