Skip to content

Commit

Permalink
Adding new dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlconlin committed Mar 28, 2018
1 parent 033edb9 commit c167076
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions njoy21/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM njoy21/njoy:base

LABEL maintainer="Jeremy Lloyd Conlin [email protected]"

# RUN /usr/bin/clang --version \
# && /usr/bin/clang++ --version \
# && /usr/bin/gfortran --version

# RUN /usr/bin/clang -v \
# && /usr/bin/clang++ -v \
# && /usr/bin/gfortran -v

RUN cd ~ \
&& git clone https://github.com/njoy/NJOY21.git \
&& cd NJOY21 \
&& git checkout bugfix/POWR-Lib3-test \
&& mkdir bin \
&& cd bin \
&& export CORES=$(grep -c ^processor /proc/cpuinfo) \
&& cmake -D CMAKE_BUILD_TYPE=Release \
-D static_libraries=TRUE \
../ \
&& make -j${nproc} \
&& make install

ENTRYPOINT [ "/bin/bash" ]

0 comments on commit c167076

Please sign in to comment.