Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 1.43 KB
# Docker container for runing RegCM
# It is based on alpine and some testing packages.
# Had to compile netcdf-c and netcdf-fortran before compiling RegCM 4.7.6
# Author: Guillermo Ambrosio <>
# Date: 2019/11/13
FROM alpine:3.10
RUN apk add --no-cache bash bash-doc bash-completion
RUN apk add --no-cache musl-dev
RUN apk add --no-cache gfortran gdb make
RUN apk add --no-cache g++
RUN cd /opt/ && mkdir netcdf && cd netcdf && wget
RUN apk add --no-cache curl-dev m4
RUN apk add --no-cache -X hdf5-dev
RUN cd /opt/netcdf && tar xfz v4.7.2.tar.gz && cd netcdf-c-4.7.2/ && ./configure && make && make install
RUN cd /opt/netcdf && wget && tar xfz v4.5.2.tar.gz && ls
RUN apk add --no-cache -X openmpi openmpi-dev
RUN cd /opt/netcdf/netcdf-fortran-4.5.2/ && ./configure && make && make install
RUN cd /opt/ && wget && tar xf 4.7.6.tar.gz && ls
RUN apk add autoconf automake binutils git
# Some how alpine has ar, but this make process requires an AR env variable.
RUN export AR=/usr/bin/ar; cd /opt/RegCM-4.7.6 && ./ && ./configure && make && make install
RUN apk add openssh nano
RUN addgroup -S runner && adduser -S runner -G runner
USER runner
You can’t perform that action at this time.