3
3
# Extended from github.com/jupyter/docker-stacks
4
4
# See also http://blog.dscpl.com.au/2016/01/roundup-of-docker-issues-when-hosting.html
5
5
6
- FROM python:3.8 -slim-bullseye
6
+ FROM python:3.9 -slim-bullseye
7
7
8
8
LABEL maintainer="Nick Greenfield <nick@onecodex.com>"
9
9
@@ -100,7 +100,7 @@ RUN wget https://ftp.samba.org/pub/cwrap/nss_wrapper-1.1.2.tar.gz && \
100
100
rm -rf nss_wrapper
101
101
102
102
# 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
104
104
105
105
# Configure container startup
106
106
EXPOSE 8888
@@ -111,8 +111,8 @@ CMD ["jupyter", "notebook"]
111
111
112
112
# Add assets
113
113
RUN 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
116
116
COPY notebook/onecodex.js /home/$NB_USER/.jupyter/custom/
117
117
COPY notebook/one-codex-spinner.svg /home/$NB_USER/.jupyter/custom/
118
118
COPY notebook/override.css /home/$NB_USER/.jupyter/custom/custom.css
@@ -126,24 +126,26 @@ RUN jupyter nbextension install /usr/local/share/jupyter/customextensions/ \
126
126
RUN chmod +x /usr/local/bin/token_notebook.py
127
127
128
128
# 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 \
131
131
&& patch -p0 < notebook.patch
132
132
133
133
# Finally fix permissions on everything
134
134
# See https://github.com/jupyter/docker-stacks/issues/188
135
135
# RUN chown -R $NB_USER:root /home/$NB_USER && chmod -R u+rw,g+rw /home/$NB_USER
136
136
RUN chown -R $NB_USER:root /home/$NB_USER && find /home/$NB_USER -type d -exec chmod 775 {} \;
137
137
138
- ENV PYTHONPATH "/home/jovyan/.local/lib/python3.8 "
138
+ ENV PYTHONPATH "/home/jovyan/.local/lib/python3.9 "
139
139
140
140
# 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
142
142
143
143
# Fix for transparency issue
144
144
# Pin in onecodex/onecodex once version w/ fix is released
145
145
# https://github.com/Kozea/WeasyPrint/commit/4dfe6079c2d1bd91cccfd9a7d78f8924e2dfabef
146
146
RUN pip install --force-reinstall 'git+https://github.com/Kozea/WeasyPrint.git@4dfe6079c2d1bd91cccfd9a7d78f8924e2dfabef'
147
147
148
+ RUN pip install --force-reinstall 'git+https://github.com/CourtBouillon/pydyf.git@f340fcc949382e183118b4807491b9f5cab4a89b'
149
+
148
150
# Switch to unprivileged user, jovyan
149
151
USER $NB_USER
0 commit comments