Skip to content

Instantly share code, notes, and snippets.

@mgnisia
Last active September 26, 2019 08:58
Show Gist options
  • Save mgnisia/bbd167f9940f658d33e8b974bd8fa3f8 to your computer and use it in GitHub Desktop.
Save mgnisia/bbd167f9940f658d33e8b974bd8fa3f8 to your computer and use it in GitHub Desktop.
Dockerfile for gcc compiler with simple fish prompt and mpi
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