PRITHIV SAKTHI U R commited on
Commit
fb2373e
·
1 Parent(s): a1de45c

Switch to Ubuntu 22.04 base image (GLIBC 2.35+ natively supports 2.32) and upgrade to Python 3.12 via latest Miniconda for better package compatibility.

Browse files

This fixes the GLIBC error without risky manual upgrades, as Ubuntu 20.04 (GLIBC 2.31) can't safely load newer wheels

| Original | Updated | Reason |
| ------------------------ | ----------------------- | -------------------------------------------------------------------------- |
| ubuntu20.04 | ubuntu22.04 | GLIBC 2.35 >= 2.32; CUDA 12.5 fully supported |
| Miniconda3-py310_22.11.1 | Miniconda3-py312_24.7.1 | Python 3.12 (LTS); better ML lib support, no GLIBC wheel mismatches |
| python3.10 path | python3.12 path | Matches new Miniconda for Jupyter template |

Files changed (2) hide show
  1. Dockerfile +6 -6
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu20.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
  TZ=Europe/Paris \
@@ -57,9 +57,9 @@ RUN adduser --disabled-password --gecos '' --shell /bin/bash user && \
57
  chown -R user:user /home/user /app && \
58
  echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
59
 
60
- # Miniconda Python 3.10
61
  USER user
62
- RUN curl -fsSL -o /home/user/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh && \
63
  bash /home/user/miniconda.sh -b -p /home/user/miniconda && \
64
  rm -f /home/user/miniconda.sh && \
65
  conda clean -ya
@@ -89,7 +89,7 @@ COPY --chown=user:user . /home/user/app
89
 
90
  RUN chmod +x /home/user/app/start_server.sh
91
 
92
- # Jupyter template path for Python 3.10
93
- COPY --chown=user:user login.html /home/user/miniconda/lib/python3.10/site-packages/jupyter_server/templates/login.html
94
 
95
- CMD ["./start_server.sh"]
 
1
+ FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
  TZ=Europe/Paris \
 
57
  chown -R user:user /home/user /app && \
58
  echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
59
 
60
+ # Miniconda Python 3.12 (latest stable)
61
  USER user
62
+ RUN curl -fsSL -o /home/user/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-py312_24.7.1-0-Linux-x86_64.sh && \
63
  bash /home/user/miniconda.sh -b -p /home/user/miniconda && \
64
  rm -f /home/user/miniconda.sh && \
65
  conda clean -ya
 
89
 
90
  RUN chmod +x /home/user/app/start_server.sh
91
 
92
+ # Jupyter template path for Python 3.12
93
+ COPY --chown=user:user login.html /home/user/miniconda/lib/python3.12/site-packages/jupyter_server/templates/login.html
94
 
95
+ CMD ["./start_server.sh"]
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
- jupyterlab==4.5.6
2
  tornado==6.5.5
3
  ipywidgets==8.1.8
 
1
+ jupyterlab==4.5.7
2
  tornado==6.5.5
3
  ipywidgets==8.1.8