Skip to content

Commit

Permalink
update Dockerfile for HPC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 2, 2024
1 parent 56d97b5 commit 41b9feb
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
FROM ubuntu:20.04 as build
FROM ubuntu:22.04 as build

RUN apt-get -y update && apt-get install -y apt-utils && \
apt-get install -y -qq -o=Dpkg::Use-Pty=0 build-essential gfortran zlib1g-dev \
libhdf5-dev libcurl4-openssl-dev libboost-dev cmake wget python
libhdf5-dev ninja-build libcurl4-openssl-dev libboost-all-dev cmake wget python3

COPY . /vcellroot

RUN mkdir -p /vcellroot/build/bin
WORKDIR /vcellroot/build

RUN /usr/bin/cmake \
RUN cmake \
-G Ninja \
-DOPTION_TARGET_MESSAGING=ON \
-DOPTION_TARGET_SMOLDYN_SOLVER=OFF \
-DOPTION_TARGET_FV_SOLVER=ON \
-DOPTION_TARGET_DOCS=OFF \
.. && \
make && \
ninja && \
ctest


#RUN apt-get update && \
# apt-get install -y apt-utils && \
# apt-get install -q -y --no-install-recommends curl dnsutils
#
#RUN apt-get install -qq -y -o=Dpkg::Use-Pty=0 gcc gfortran zlib1g \
# libhdf5-103 libhdf5-cpp-103 libcurl4-openssl-dev zip
#
#COPY --from=build /vcellroot/build/bin /vcellbin
#WORKDIR /vcellbin
#ENV PATH=/vcellbin:$PATH
#

0 comments on commit 41b9feb

Please sign in to comment.