Last active
September 26, 2019 08:58
-
-
Save mgnisia/bbd167f9940f658d33e8b974bd8fa3f8 to your computer and use it in GitHub Desktop.
Dockerfile for gcc compiler with simple fish prompt and mpi
This file contains hidden or 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 nlknguyen/alpine-mpich | |
FROM gcc | |
# Update the containers to install fish | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y fish vim | |
# Install PNG Library | |
RUN wget https://download.savannah.nongnu.org/releases/pngpp/png++-0.2.9.tar.gz | |
RUN tar -zxf png++-0.2.9.tar.gz -C . | |
WORKDIR png++-0.2.9 | |
RUN make | |
RUN make install | |
# Add user to prevent root executing the mpi processes | |
RUN useradd -ms /bin/bash mpi | |
USER mpi | |
WORKDIR /home/mpi | |
# Set Working DIR | |
ENTRYPOINT ["fish"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment