Skip to content

ALU-Schumacher/docker-gcc-fortran

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

This repository provides a container that allows to build fortran programs with gcc-fortran.

To compile your code run this command in the directory where you would run usually the compilation:

docker run -it --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) aluschumacher/gcc-fortran:latest <command>

Here, <command> can be either gfortran followed by some arguments, or make.

You can then execute the program with

docker run -it --rm -v $(pwd):$(pwd) -w $(pwd) -u $(id -u):$(id -g) aluschumacher/gcc-fortran:latest ./<your-binary>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages