forked from uvilla/cmis-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (28 loc) · 960 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
32
33
34
35
36
37
38
39
40
FROM quay.io/fenicsproject/stable:2019.1.0.r3
MAINTAINER U. Villa
USER root
#RUN apt-get update
RUN apt-get install -yy npm
RUN npm install -g configurable-http-proxy
RUN sudo pip3 install pip --upgrade
RUN pip3 install jupyterhub
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
USER fenics
# Install hIPPYlib
RUN cd /home/fenics/ && \
git clone https://github.com/hippylib/hippylib.git && \
chmod -R o+rx hippylib
# cd hippylib && git checkout -b tags/3.0.0 && cd .. &&\
# Copy the notebooks
RUN cd /home/fenics/ && \
git clone https://github.com/uvilla/cmis_labs.git
COPY jupyterhub_config.py /home/fenics/jupyterhub_config.py
COPY make-users.py /home/fenics/make-users.py
COPY update_lab.py /home/fenics/update_lab.py
COPY users.csv /home/fenics/users.csv
ENV PYTHONPATH /home/fenics/hippylib
USER root
RUN python make-users.py
WORKDIR /home/fenics/
ENTRYPOINT ["/sbin/my_init","--"]
CMD ["jupyterhub"]