-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:24.04 | ||
|
||
USER root | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y \ | ||
lsb-release git subversion wget bc libgmp-dev \ | ||
build-essential autoconf automake cmake libtool gfortran python3 \ | ||
zlib1g-dev \ | ||
openmpi-bin openmpi-common libopenmpi-dev \ | ||
libblas3 libblas-dev liblapack3 liblapack-dev libsuitesparse-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ARG USER=bob | ||
RUN adduser --disabled-password --gecos '' $USER | ||
RUN adduser $USER sudo; echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
RUN chown -R $USER:$USER /home/$USER | ||
USER $USER | ||
ENV HOME /home/$USER | ||
ENV USER $USER | ||
ENV OMPI_MCA_btl "^vader" | ||
WORKDIR $HOME |