-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
45 lines (33 loc) · 1.09 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
FROM quay.io/fenicsproject/stable:2019.1.0.r3
LABEL authors="U. Villa"
USER root
RUN apt-get update
RUN apt-get install -yy npm
RUN npm cache clean -f
RUN npm install -g n
RUN n 14.0.0
RUN npm install -g [email protected]
RUN sudo pip3 install pip --upgrade
RUN pip3 install jupyterhub jupyterlab
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.1.0
# Copy the notebooks
RUN cd /home/fenics/ && \
git clone https://github.com/hippylib/cvips_labs.git && \
chmod -R o+rX cvips_labs
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
ENV HIPPYLIB_BASE_DIR /home/fenics/hippylib
USER root
RUN python make-users.py
WORKDIR /home/fenics/
ENTRYPOINT ["/sbin/my_init","--"]
CMD ["jupyterhub"]