Created
April 5, 2019 07:34
-
-
Save tvalimaki/231c8bd8d415b34038be9c81f21d6080 to your computer and use it in GitHub Desktop.
MADP Toolbox Dockerfile
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
FROM nvidia/cuda:10.1-devel AS build | |
WORKDIR /tmp | |
COPY . /tmp | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
automake autoconf libtool \ | |
liblpsolve55-dev libgmp3-dev libxml2-dev | |
RUN sh autogen.sh | |
RUN ./configure --prefix=/madp | |
RUN make | |
RUN make install | |
FROM nvidia/cuda:10.1-runtime | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
liblpsolve55-dev libgmp3-dev libxml2-dev | |
COPY --from=build /madp /madp | |
WORKDIR /root/.madp | |
RUN mkdir results | |
COPY ./problems problems | |
ENV LD_LIBRARY_PATH /madp/lib:$LD_LIBRARY_PATH | |
ENV PATH /madp/bin:$PATH | |
CMD ["GMAA", "DT", "-h2", "-v"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment