File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,20 @@ ENV CREATE_GID=${gid}
29
29
ENV CONTAINER_GIT_COMMIT=${git_commit}
30
30
31
31
# 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
33
33
RUN apt install graphviz libgraphviz-dev pkg-config python-pygraphviz -y
34
34
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
37
35
RUN python3 -m pip install --upgrade pip
38
36
RUN ln -sf /usr/bin/pip3 /usr/bin/pip
39
37
RUN pip install -r ./requirements-dev.txt
40
38
RUN pip install -r ./requirements.txt
41
39
RUN pip install .
42
40
RUN python3 -m jupyter labextension install
[email protected]
43
41
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
+
44
46
RUN groupadd -g ${gid:-1000} developer \
45
47
&& useradd -l -g developer -u ${uid:-1000} -m developer
46
48
# see https://github.com/moby/moby/issues/5419#issuecomment-41478290
You can’t perform that action at this time.
0 commit comments