FROM ubuntu:16.04 MAINTAINER miro.eklund@semantum.fi ARG fmi='http://www.jmodelica.org/downloads/FMIL/FMILibrary-2.0.3-src.zip' RUN apt-get update && \ apt-get -y upgrade RUN apt-get install -y wget cmake unzip build-essential RUN mkdir /builds && \ mkdir /builds/fmilsrc && \ mkdir /builds/fmil && \ mkdir /builds/fmildebug RUN wget -O /builds/fmilsrc/fmil.zip $fmi WORKDIR /builds/fmilsrc RUN unzip /builds/fmilsrc/fmil.zip && \ rm /builds/fmilsrc/fmil.zip WORKDIR /builds/fmil RUN cmake /builds/fmilsrc/FMILibrary-2.0.3 RUN make RUN make install test >> /fmil.log WORKDIR /builds/fmildebug RUN cmake -DFMILIB_ENABLE_LOG_LEVEL_DEBUG=ON /builds/fmilsrc/FMILibrary-2.0.3 RUN make RUN make install test >> /fmildebug.log COPY ./copytovolume.sh /copytovolume.sh RUN chmod 755 /copytovolume.sh ENTRYPOINT /copytovolume.sh