33# Extended from github.com/jupyter/docker-stacks
44# See also http://blog.dscpl.com.au/2016/01/roundup-of-docker-issues-when-hosting.html
55
6- FROM python:3.9 -slim-bullseye
6+ FROM python:3.13 -slim-bullseye
77
88LABEL maintainer="Nick Greenfield <nick@onecodex.com>"
99
@@ -92,7 +92,7 @@ RUN wget https://ftp.samba.org/pub/cwrap/nss_wrapper-1.1.2.tar.gz && \
9292 rm -rf nss_wrapper
9393
9494# Copy `onecodex` installed fonts to local directory
95- RUN cp /usr/local/lib/python3.9 /site-packages/onecodex/assets/fonts/*.otf /usr/local/share/fonts && fc-cache
95+ RUN cp /usr/local/lib/python3.13 /site-packages/onecodex/assets/fonts/*.otf /usr/local/share/fonts && fc-cache
9696
9797# Configure container startup
9898EXPOSE 8888
@@ -103,8 +103,8 @@ CMD ["jupyter", "notebook"]
103103
104104# Add assets
105105RUN mkdir /opt/onecodex/
106- COPY notebook/notebook.html /usr/local/lib/python3.9 /site-packages/notebook/templates
107- COPY notebook/override.css /usr/local/lib/python3.9 /site-packages/notebook/static/notebook/css
106+ COPY notebook/notebook.html /usr/local/lib/python3.13 /site-packages/notebook/templates
107+ COPY notebook/override.css /usr/local/lib/python3.13 /site-packages/notebook/static/notebook/css
108108COPY notebook/onecodex.js /home/$NB_USER/.jupyter/custom/
109109COPY notebook/one-codex-spinner.svg /home/$NB_USER/.jupyter/custom/
110110COPY notebook/override.css /home/$NB_USER/.jupyter/custom/custom.css
@@ -118,19 +118,19 @@ RUN jupyter nbextension install /usr/local/share/jupyter/customextensions/ \
118118RUN chmod +x /usr/local/bin/token_notebook.py
119119
120120# Add patch to jupyter notebook for export to One Codex document portal
121- COPY notebook/notebook.patch /usr/local/lib/python3.9 /site-packages/notebook
122- RUN cd /usr/local/lib/python3.9 /site-packages/notebook \
121+ COPY notebook/notebook.patch /usr/local/lib/python3.13 /site-packages/notebook
122+ RUN cd /usr/local/lib/python3.13 /site-packages/notebook \
123123 && patch -p0 < notebook.patch
124124
125125# Finally fix permissions on everything
126126# See https://github.com/jupyter/docker-stacks/issues/188
127127# RUN chown -R $NB_USER:root /home/$NB_USER && chmod -R u+rw,g+rw /home/$NB_USER
128128RUN chown -R $NB_USER:root /home/$NB_USER && find /home/$NB_USER -type d -exec chmod 775 {} \;
129129
130- ENV PYTHONPATH "/home/jovyan/.local/lib/python3.9 "
130+ ENV PYTHONPATH "/home/jovyan/.local/lib/python3.13 "
131131
132132# Provide full access to the Python directory to allow for pip installs
133- RUN chown -R $NB_USER:root /usr/local/lib/python3.9
133+ RUN chown -R $NB_USER:root /usr/local/lib/python3.13
134134
135135# Switch to unprivileged user, jovyan
136136USER $NB_USER
0 commit comments