| 1 |
FROM ghcr.io/mfem/mfem-ubuntu-base:latest as builder |
| 2 |
|
| 3 |
# docker build -t ghcr.io/mfem/mfem-ubuntu . |
| 4 |
|
| 5 |
COPY ./config/docker/spack.yaml /opt/mfem-env/spack.yaml |
| 6 |
RUN apt-get install -y python3 && \ |
| 7 |
cd /opt/mfem-env && \ |
| 8 |
. /opt/spack/share/spack/setup-env.sh && \ |
| 9 |
spack env activate . && \ |
| 10 |
spack env view regenerate |
| 11 |
|
| 12 |
FROM ubuntu:22.04 |
| 13 |
|
| 14 |
COPY --from=builder /opt/view /opt/view |
| 15 |
COPY --from=builder /opt/mfem-view /opt/mfem-view |
| 16 |
|
| 17 |
RUN apt-get update && \ |
| 18 |
apt-get install -y unzip gfortran && \ |
| 19 |
apt-get install -y libcurl4-openssl-dev libssl-dev |
| 20 |
|
| 21 |
ENV PATH=$PATH:/opt/mfem-view/bin |
| 22 |
ENV DEBIAN_FRONTEND=noninteractive |
| 23 |
|
| 24 |
# The user will see the view on shell into the container |
| 25 |
WORKDIR /opt/mfem-view |