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
1414RUN git clone --depth 1 https://github.com/DeepTrackAI/DeepLearningCrashCourse.git .
1515
1616# ---------- 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}
2020
2121# ---------- extra Python deps -----------------------------------------------------
2222# CPU-only PyTorch (wheels from CPU index)
@@ -29,6 +29,7 @@ RUN pip install --no-cache-dir \
2929 torch-geometric \
3030 -f https://data.pyg.org/whl/torch-2.7.0+cpu.html
3131
32+ # Then install your extra deps
3233COPY ./requirements.txt /tmp/
3334RUN pip install --no-cache-dir -r /tmp/requirements.txt
3435
Original file line number Diff line number Diff line change 22# GPU-enabled Jupyter + PyTorch + your course
33# ────────────────────────────────────────────────────────────────────────────────
44FROM quay.io/jupyter/pytorch-notebook:cuda12-python-3.11.9
5-
5+ # ---------- system utilities ------------------------------------------------------
66USER root
77RUN apt-get update && \
88 apt-get install -y --no-install-recommends git && \
99 rm -rf /var/lib/apt/lists/*
1010USER ${NB_UID}
1111
12+ # ---------- copy the course -------------------------------------------------------
1213WORKDIR /home/jovyan/work
1314RUN git clone --depth 1 https://github.com/DeepTrackAI/DeepLearningCrashCourse.git .
1415
15- # ensure jovyan owns the workspace
16+ # ---------- ensure correct ownership ---------------------------------------------
1617USER root
1718RUN chown -R ${NB_UID}:${NB_GID} /home/jovyan/work
1819USER ${NB_UID}
1920
21+ # ---------- extra Python deps -----------------------------------------------------
2022# Base image already has CUDA-enabled PyTorch 2.7+
2123# Install PyG CUDA wheels matching torch 2.7.0+cu121
2224RUN pip install --no-cache-dir \
@@ -36,6 +38,5 @@ RUN pip install --no-cache-dir \
3638RUN jupyter nbextension install --py widgetsnbextension --sys-prefix && \
3739 jupyter nbextension enable --py widgetsnbextension --sys-prefix
3840
39-
4041EXPOSE 8888
4142CMD ["start-notebook.sh"]
You can’t perform that action at this time.
0 commit comments