-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathepanet-rtx.docker
32 lines (22 loc) · 950 Bytes
/
epanet-rtx.docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -yq llvm clang cmake curl libcurl4-openssl-dev git python3-pip
### setup conan dependency management
RUN pip3 install --upgrade pip && \
pip3 install conan
RUN conan profile detect --force
WORKDIR /opt/src
COPY ./deps/ ./epanet-rtx/deps
RUN cd epanet-rtx \
&& conan export deps/local_export/sqlite_modern_cpp \
&& conan export deps/local_export/epanet
##########################################################################################
#### everything above here should be pretty stable. cache this.
##########################################################################################
COPY . ./epanet-rtx/
WORKDIR /opt/src/epanet-rtx
RUN conan install . --build=missing -s build_type=Release
RUN conan build . --build=missing -s build_type=Release
RUN conan export-pkg . -s build_type=Release
RUN ./build/Release/bin/rtx_test