-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (20 loc) · 1.01 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
FROM aiidalab/full-stack:v2024.1016
USER root
RUN apt-get update -y && apt-get install -y cp2k && apt-get clean -y
USER ${NB_USER}
RUN mkdir /home/${NB_USER}/opt
RUN cd /home/${NB_USER}/opt && git clone https://github.com/lammps/lammps && cd lammps/src && make lib-pace args="-b" && make yes-molecule && make yes-reaxff && make yes-rigid && make yes-ml-pace && make yes-manybody && make lib-voronoi args="-b" && make yes-voronoi && make serial
USER root
RUN cp /home/${NB_USER}/opt/lammps/src/lmp_serial /usr/bin/lmp_serial
USER ${NB_USER}
ENV JUPYTER_TERMINAL_IDLE_TIMEOUT=3600
RUN rm -rf /home/${NB_USER}/opt/lammps/
RUN pip install --user skmatter
RUN cd opt && git clone https://github.com/lab-cosmo/librascal.git && cd librascal && pip install --user .
RUN pip install --user scikit-learn
RUN pip install --user aiida-cp2k
RUN pip install --user spglib
RUN pip install pythtb
RUN conda install -c conda-forge mpi4py
COPY configs /home/${NB_USER}/configs
COPY before-notebook.d/* /usr/local/bin/before-notebook.d/