-
Notifications
You must be signed in to change notification settings - Fork 55
/
Dockerfile
19 lines (15 loc) · 977 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:24.04
RUN apt-get -y update && apt-get -y --no-install-recommends install g++ cmake libgsl0-dev libopenmpi-dev openmpi-bin libfftw3-dev libatlas-base-dev liblapack-dev wget unzip ca-certificates make && \
cd /root && \
wget https://github.com/shankar1729/jdftx/archive/refs/heads/master.zip && unzip master.zip && rm master.zip && \
cd jdftx-master && mkdir build && cd build && \
cmake ../jdftx && make all && make install && \
make test && \
apt-get -y purge g++ cmake wget unzip ca-certificates make && \
cd /root && rm -rf /root/jdftx-master && \
echo 'export PATH="$PATH:/usr/local/share/jdftx/scripts"' >> /root/.bashrc && mkdir /root/research
WORKDIR /root/research
#Use it like this:
#docker run -it --rm -v $PWD:/root/research jdftx
#Or even better, put the following line at the end of your .bashrc and/or .zshrc so that you can just run 'jdftx' :
#function jdftx () { docker run -it --rm -v $PWD:/root/research jdftx ; }