Files
mfem/config/docker/Dockerfile
T
vsoch 3e2de8dfbe fix config/docker image instructions and dockerfiles
Problem: the current base image does not finish installing mfem,
and the instructions do not clearly lay out the use cases for using
the two containers.
Solution: update the builds and better delineate the different use
cases and usage instructions in the README.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
2023-07-01 15:48:21 -06:00

26 lines
710 B
Docker

FROM ghcr.io/mfem/mfem-ubuntu-base:latest as builder
# docker build -t ghcr.io/mfem/mfem-ubuntu .
COPY ./config/docker/spack.yaml /opt/mfem-env/spack.yaml
RUN apt-get install -y python3 && \
cd /opt/mfem-env && \
. /opt/spack/share/spack/setup-env.sh && \
spack env activate . && \
spack env view regenerate
FROM ubuntu:22.04
COPY --from=builder /opt/view /opt/view
COPY --from=builder /opt/mfem-view /opt/mfem-view
RUN apt-get update && \
apt-get install -y unzip gfortran && \
apt-get install -y libcurl4-openssl-dev libssl-dev
ENV PATH=$PATH:/opt/mfem-view/bin
ENV DEBIAN_FRONTEND=noninteractive
# The user will see the view on shell into the container
WORKDIR /opt/mfem-view