Skip to content

Instantly share code, notes, and snippets.

@ericcgu
Last active August 3, 2018 02:39
Show Gist options
  • Save ericcgu/5b15ef6e674330094fe863a5555d0f99 to your computer and use it in GitHub Desktop.
Save ericcgu/5b15ef6e674330094fe863a5555d0f99 to your computer and use it in GitHub Desktop.
# 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