File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ WORKDIR /home/jovyan/work
14
14
RUN git clone --depth 1 https://github.com/DeepTrackAI/DeepLearningCrashCourse.git .
15
15
16
16
# ---------- ensure correct ownership ---------------------------------------------
17
- USER root
18
- RUN chown -R ${NB_UID}:${NB_GID} /home/jovyan/work
19
- USER ${NB_UID}
17
+ USER root
18
+ RUN chown -R ${NB_UID}:${NB_GID} /home/jovyan/work
19
+ USER ${NB_UID}
20
20
21
21
# ---------- extra Python deps -----------------------------------------------------
22
22
# CPU-only PyTorch (wheels from CPU index)
@@ -29,6 +29,7 @@ RUN pip install --no-cache-dir \
29
29
torch-geometric \
30
30
-f https://data.pyg.org/whl/torch-2.7.0+cpu.html
31
31
32
+ # Then install your extra deps
32
33
COPY ./requirements.txt /tmp/
33
34
RUN pip install --no-cache-dir -r /tmp/requirements.txt
34
35
Original file line number Diff line number Diff line change 2
2
# GPU-enabled Jupyter + PyTorch + your course
3
3
# ────────────────────────────────────────────────────────────────────────────────
4
4
FROM quay.io/jupyter/pytorch-notebook:cuda12-python-3.11.9
5
-
5
+ # ---------- system utilities ------------------------------------------------------
6
6
USER root
7
7
RUN apt-get update && \
8
8
apt-get install -y --no-install-recommends git && \
9
9
rm -rf /var/lib/apt/lists/*
10
10
USER ${NB_UID}
11
11
12
+ # ---------- copy the course -------------------------------------------------------
12
13
WORKDIR /home/jovyan/work
13
14
RUN git clone --depth 1 https://github.com/DeepTrackAI/DeepLearningCrashCourse.git .
14
15
15
- # ensure jovyan owns the workspace
16
+ # ---------- ensure correct ownership ---------------------------------------------
16
17
USER root
17
18
RUN chown -R ${NB_UID}:${NB_GID} /home/jovyan/work
18
19
USER ${NB_UID}
19
20
21
+ # ---------- extra Python deps -----------------------------------------------------
20
22
# Base image already has CUDA-enabled PyTorch 2.7+
21
23
# Install PyG CUDA wheels matching torch 2.7.0+cu121
22
24
RUN pip install --no-cache-dir \
@@ -36,6 +38,5 @@ RUN pip install --no-cache-dir \
36
38
RUN jupyter nbextension install --py widgetsnbextension --sys-prefix && \
37
39
jupyter nbextension enable --py widgetsnbextension --sys-prefix
38
40
39
-
40
41
EXPOSE 8888
41
42
CMD ["start-notebook.sh"]
You can’t perform that action at this time.
0 commit comments