File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed
Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM ubuntu:noble AS builder
2+ WORKDIR /
3+ RUN apt-get update && apt-get install -y --no-install-recommends \
4+ build-essential ca-certificates git libz-dev python3 cmake libgsl-dev libxerces-c-dev xsdcxx libboost-dev \
5+ && rm -rf /var/lib/apt/lists/* \
6+ && git clone --depth 1 --branch schema-46.0 https://github.com/SwissTPH/openmalaria.git \
7+ && cd openmalaria \
8+ && mkdir build \
9+ && cd build \
10+ && cmake -DCMAKE_BUILD_TYPE=Release .. \
11+ && make -j8 \
12+ && cd .. \
13+ && mkdir openmalariaRelease \
14+ && cp build/openMalaria openmalariaRelease/ \
15+ && cp build/schema/scenario_current.xsd openmalariaRelease/scenario_46.xsd \
16+ && cp build/schema/scenario_current.xsd openmalariaRelease/ \
17+ && cp test/*.csv openmalariaRelease/
18+
19+ FROM ubuntu:noble AS openmalaria
20+ WORKDIR /om/
21+ RUN apt-get update && apt-get install -y --no-install-recommends \
22+ libgsl27 libxerces-c3.2 \
23+ && rm -rf /var/lib/apt/lists/*
24+ COPY --from=builder /openmalaria/openmalariaRelease/* ./
25+ ENTRYPOINT ["/om/openMalaria"]
26+
27+ # docker build -t openmalaria .
28+ # docker run -it --rm -v /home/acavelan/git/openmalaria/nhh:/root/nhh openmalaria -p nhh -s scenarioNonHumanHosts.xml
Original file line number Diff line number Diff line change 1+ FROM ubuntu:jammy AS builder
2+ WORKDIR /
3+ RUN apt-get update && apt-get install -y --no-install-recommends \
4+ build-essential ca-certificates git libz-dev python3 cmake libgsl-dev libxerces-c-dev xsdcxx libboost-dev \
5+ && rm -rf /var/lib/apt/lists/* \
6+ && git clone --depth 1 --branch schema-47.0 https://github.com/SwissTPH/openmalaria.git \
7+ && cd openmalaria \
8+ && mkdir build \
9+ && cd build \
10+ && cmake -DCMAKE_BUILD_TYPE=Release .. \
11+ && make -j8 \
12+ && cd .. \
13+ && mkdir openmalariaRelease \
14+ && cp build/openMalaria openmalariaRelease/ \
15+ && cp build/schema/scenario_current.xsd openmalariaRelease/scenario_47.xsd \
16+ && cp build/schema/scenario_current.xsd openmalariaRelease/ \
17+ && cp test/*.csv openmalariaRelease/
18+
19+ FROM ubuntu:jammy AS openmalaria
20+ WORKDIR /om/
21+ RUN apt-get update && apt-get install -y --no-install-recommends \
22+ build-essential libgsl27 libxerces-c3.2 \
23+ && rm -rf /var/lib/apt/lists/*
24+ COPY --from=builder /openmalaria/openmalariaRelease/* ./
25+ ENTRYPOINT ["/om/openMalaria"]
26+
27+ # docker build -t openmalaria .
28+ # docker run -it --rm -v /home/acavelan/git/openmalaria/nhh:/root/nhh openmalaria -p nhh -s scenarioNonHumanHosts.xml
You can’t perform that action at this time.
0 commit comments