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.8 -slim-bullseye
6+ FROM python:3.9 -slim-bullseye
77
88LABEL maintainer=
"Nick Greenfield <[email protected] >" 99
@@ -100,7 +100,7 @@ RUN wget https://ftp.samba.org/pub/cwrap/nss_wrapper-1.1.2.tar.gz && \
100100 rm -rf nss_wrapper
101101
102102# Copy `onecodex` installed fonts to local directory
103- RUN cp /usr/local/lib/python3.8 /site-packages/onecodex/assets/fonts/*.otf /usr/local/share/fonts && fc-cache
103+ RUN cp /usr/local/lib/python3.9 /site-packages/onecodex/assets/fonts/*.otf /usr/local/share/fonts && fc-cache
104104
105105# Configure container startup
106106EXPOSE 8888
@@ -111,8 +111,8 @@ CMD ["jupyter", "notebook"]
111111
112112# Add assets
113113RUN mkdir /opt/onecodex/
114- COPY notebook/notebook.html /usr/local/lib/python3.8 /site-packages/notebook/templates
115- COPY notebook/override.css /usr/local/lib/python3.8 /site-packages/notebook/static/notebook/css
114+ COPY notebook/notebook.html /usr/local/lib/python3.9 /site-packages/notebook/templates
115+ COPY notebook/override.css /usr/local/lib/python3.9 /site-packages/notebook/static/notebook/css
116116COPY notebook/onecodex.js /home/$NB_USER/.jupyter/custom/
117117COPY notebook/one-codex-spinner.svg /home/$NB_USER/.jupyter/custom/
118118COPY notebook/override.css /home/$NB_USER/.jupyter/custom/custom.css
@@ -126,24 +126,26 @@ RUN jupyter nbextension install /usr/local/share/jupyter/customextensions/ \
126126RUN chmod +x /usr/local/bin/token_notebook.py
127127
128128# Add patch to jupyter notebook for export to One Codex document portal
129- COPY notebook/notebook.patch /usr/local/lib/python3.8 /site-packages/notebook
130- RUN cd /usr/local/lib/python3.8 /site-packages/notebook \
129+ COPY notebook/notebook.patch /usr/local/lib/python3.9 /site-packages/notebook
130+ RUN cd /usr/local/lib/python3.9 /site-packages/notebook \
131131 && patch -p0 < notebook.patch
132132
133133# Finally fix permissions on everything
134134# See https://github.com/jupyter/docker-stacks/issues/188
135135# RUN chown -R $NB_USER:root /home/$NB_USER && chmod -R u+rw,g+rw /home/$NB_USER
136136RUN chown -R $NB_USER:root /home/$NB_USER && find /home/$NB_USER -type d -exec chmod 775 {} \;
137137
138- ENV PYTHONPATH "/home/jovyan/.local/lib/python3.8 "
138+ ENV PYTHONPATH "/home/jovyan/.local/lib/python3.9 "
139139
140140# Provide full access to the Python directory to allow for pip installs
141- RUN chown -R $NB_USER:root /usr/local/lib/python3.8
141+ RUN chown -R $NB_USER:root /usr/local/lib/python3.9
142142
143143# Fix for transparency issue
144144# Pin in onecodex/onecodex once version w/ fix is released
145145# https://github.com/Kozea/WeasyPrint/commit/4dfe6079c2d1bd91cccfd9a7d78f8924e2dfabef
146146RUN pip install --force-reinstall 'git+https://github.com/Kozea/WeasyPrint.git@4dfe6079c2d1bd91cccfd9a7d78f8924e2dfabef'
147147
148+ RUN pip install --force-reinstall 'git+https://github.com/CourtBouillon/pydyf.git@f340fcc949382e183118b4807491b9f5cab4a89b'
149+
148150# Switch to unprivileged user, jovyan
149151USER $NB_USER
0 commit comments