forked from Investin-pro/mango-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (35 loc) · 1.86 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM jupyter/scipy-notebook:latest
USER root
RUN apt-get update && apt-get -y install bc jq curl libxml2-dev libxslt-dev libffi-dev zlib1g-dev
RUN curl -SL -o /var/tmp/pyston_2.2_20.04.deb https://github.com/pyston/pyston/releases/download/pyston_2.2/pyston_2.2_20.04.deb
RUN apt-get -y install /var/tmp/pyston_2.2_20.04.deb
RUN rm -f /var/tmp/pyston_2.2_20.04.deb
USER ${NB_UID}
COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
RUN pip install --quiet --no-cache-dir --requirement /tmp/requirements.txt && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
RUN pip-pyston install --requirement /tmp/requirements.txt
RUN sh -c "$(curl -sSfL https://release.solana.com/v1.7.1/install)"
# Create our profile directory.
RUN ipython profile create
# Install the extensions we want
RUN jupyter contrib nbextension install --user
RUN jupyter nbextension enable codefolding/edit && \
jupyter nbextension enable codefolding/main && \
jupyter nbextension enable highlighter/highlighter && \
jupyter nbextension enable select_keymap/main && \
jupyter nbextension enable toc2/main && \
jupyter nbextension enable varInspector/main
RUN jq '. += {"select_keymap_local_storage": false, "stored_keymap": "sublime"}' \
/home/jovyan/.jupyter/nbconfig/notebook.json > \
/home/jovyan/.jupyter/nbconfig/newnotebook.json && \
mv -f /home/jovyan/.jupyter/nbconfig/newnotebook.json /home/jovyan/.jupyter/nbconfig/notebook.json
# Copy across our magic/startup scripts.
COPY meta/startup /home/jovyan/.ipython/profile_default/startup
COPY meta/jupyter/custom /home/jovyan/.jupyter/custom
ARG LAST_COMMIT=""
RUN echo ${LAST_COMMIT} > /home/jovyan/work/.version
ENV PATH="/home/jovyan/work/bin:${PATH}:/home/jovyan/work/scripts:/home/jovyan/.local/share/solana/install/active_release/bin"
ADD . /home/jovyan/work
WORKDIR /home/jovyan/work