Skip to content

Commit c7acbb0

Browse files
committed
nbviewer or binder maybe
1 parent c7c5bc5 commit c7acbb0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,20 @@ ENV CREATE_GID=${gid}
2929
ENV CONTAINER_GIT_COMMIT=${git_commit}
3030

3131
# graphviz and torch for python 3.10 are problematic, so I need to set up manual stuff
32-
RUN pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
32+
RUN pip3 install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
3333
RUN apt install graphviz libgraphviz-dev pkg-config python-pygraphviz -y
3434

35-
RUN ln -sf /usr/local/bin/python3 /usr/bin/python3
36-
#RUN ln -sf /usr/bin/python3 /usr/bin/python #https://stackoverflow.com/a/44967506/5122790
3735
RUN python3 -m pip install --upgrade pip
3836
RUN ln -sf /usr/bin/pip3 /usr/bin/pip
3937
RUN pip install -r ./requirements-dev.txt
4038
RUN pip install -r ./requirements.txt
4139
RUN pip install .
4240
RUN python3 -m jupyter labextension install [email protected]
4341

42+
#https://stackoverflow.com/a/44967506/5122790: this only after the rests
43+
# RUN ln -sf /usr/local/bin/python3 /usr/bin/python3
44+
RUN ln -sf /usr/bin/python3 /usr/bin/python
45+
4446
RUN groupadd -g ${gid:-1000} developer \
4547
&& useradd -l -g developer -u ${uid:-1000} -m developer
4648
#see https://github.com/moby/moby/issues/5419#issuecomment-41478290

0 commit comments

Comments
 (0)