Skip to content

Commit 9181a05

Browse files
committed
fix
1 parent 7a6e4c8 commit 9181a05

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

MLBook.Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ FROM jupyterhub/singleuser:latest
33
WORKDIR /tmp
44

55
RUN mamba install -y \
6-
pytorch \
6+
pytorch torchvision torchaudio pytorch-cuda \
77
tensorflow \
88
keras \
99
numpy \
1010
seaborn \
1111
pandas \
1212
matplotlib \
13-
scikit-learn
13+
scikit-learn \
14+
-c pytorch -c nvidia
1415

1516
RUN mamba clean --all -f -y && \
1617
jupyter lab clean && \
@@ -19,4 +20,5 @@ RUN mamba clean --all -f -y && \
1920
fix-permissions "/home/${NB_USER}"
2021

2122
USER ${NB_UID}
22-
WORKDIR "${HOME}"
23+
WORKDIR "${HOME}"
24+
COPY pip.conf /etc/pip.conf

TorchBook.Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ FROM jupyterhub/singleuser:latest
33
WORKDIR /tmp
44

55
RUN mamba install -y \
6-
pytorch \
6+
pytorch torchvision torchaudio pytorch-cuda \
77
numpy \
88
seaborn \
99
pandas \
1010
matplotlib \
11-
scikit-learn
11+
scikit-learn \
12+
-c pytorch -c nvidia
1213

1314
RUN mamba clean --all -f -y && \
1415
jupyter lab clean && \
@@ -17,4 +18,5 @@ RUN mamba clean --all -f -y && \
1718
fix-permissions "/home/${NB_USER}"
1819

1920
USER ${NB_UID}
20-
WORKDIR "${HOME}"
21+
WORKDIR "${HOME}"
22+
COPY pip.conf /etc/pip.conf

0 commit comments

Comments
 (0)