forked from ucsd-ets/datascience-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 884 Bytes
/
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
FROM ucsdets/datahub-base-notebook:2021.1-stable
LABEL MAINTAINER="UC San Diego ITS/ETS-EdTech-Ecosystems <acms-compinf@ucsd.edu>"
# Install OKpy for DSC courses
# downgrade pip temporarily and upgrade to fix issue with okpy install
USER root
RUN pip install --upgrade --force-reinstall pip==9.0.3
RUN pip install okpy --disable-pip-version-check
RUN pip install --upgrade pip
RUN pip install dpkt \
nose \
datascience
# Pregenerate matplotlib cache
RUN python -c 'import matplotlib.pyplot'
RUN conda clean -tipsy
# import integration tests
ENV TESTDIR=/usr/share/datahub/tests
ARG DATASCIENCE_TESTDIR=${TESTDIR}/datascience-notebook
COPY tests ${DATASCIENCE_TESTDIR}
RUN chmod -R +rwx ${DATASCIENCE_TESTDIR}
RUN chown 1000:1000 ${DATASCIENCE_TESTDIR}
# change the owner back
RUN chown -R 1000:1000 /home/jovyan
USER $NB_UID
ENV SHELL=/bin/bash