-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (26 loc) · 704 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (26 loc) · 704 Bytes
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
FROM ubuntu:22.04 as builder
RUN apt-get update && apt-get install --yes \
clang \
git \
libssl-dev \
meson \
ninja-build \
pkg-config \
&& true
WORKDIR /build/
COPY src /build/src/
COPY meson.build meson_options.txt /build/
COPY subprojects /build/subprojects/
RUN meson setup -Dbuild_libexample=false -Dbuild_unittests=false build/
RUN meson configure \
-Dbuildtype=release \
-Db_lto=true \
-Dclipp:default_library=static \
-Dcpprom:default_library=static \
-Djoml-cpp:default_library=static \
-Dliburingpp:default_library=static \
build/
RUN meson compile -C build/
FROM ubuntu:22.04 AS runtime
COPY --from=builder /build/build/htcpp /usr/local/bin/
ENTRYPOINT ["htcpp"]