Last active
August 3, 2018 02:39
-
-
Save ericcgu/5b15ef6e674330094fe863a5555d0f99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HelloWorld_Fortran test | |
# start by building the basic container | |
FROM centos:latest | |
MAINTAINER Eric Gu | |
RUN yum update -y | |
# add gfortran, debugging tools and make | |
RUN yum install -y gcc-gfortran gdb make | |
# build the hello world code | |
COPY Makefile HelloWorld.f90 /fortran/ | |
WORKDIR /fortran/ | |
RUN make HelloWorld | |
# configure the container to run the hello world executable by default | |
CMD ["./HelloWorld"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment