Skip to content

Commit

Permalink
[docker] Added a Dockerfile to pscf project
Browse files Browse the repository at this point in the history
  • Loading branch information
Gjacquenot committed Mar 15, 2017
1 parent 3e23bc7 commit b4980c7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is the Dockerfile for PSCF.
#
# To build the container, you need docker to be installed on
# your machine (https://www.docker.com) and run the following command
#
# docker build -t pscf .
#
# It will create a Debian-based container that contains everything
# needed to compile pscf
#
# Everything will be installed in /pscf
#
# To run the container interactively
#
# docker run -it pcsf /bin/bash

FROM debian

RUN apt-get update && \
apt-get install -y \
cmake \
gfortran \
liblapack3 \
libfftw3-dev \
python

WORKDIR .
ADD . /pcsf
RUN cd /pcsf_SRC && \
mkdir -p build && \
cd build && \
export FC=`which gfortran` && \
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/pcsf && \
make && \
make install

0 comments on commit b4980c7

Please sign in to comment.