forked from percolator/percolator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (27 loc) · 1.03 KB
/
Dockerfile
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
33
34
35
36
37
38
39
FROM docker.io/library/ubuntu:24.04 AS builder
ARG percolator_cmake_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DGOOGLE_TEST=0 -DXML_SUPPORT=OFF"
RUN apt-get update && apt-get install -y
# Remove the system gtest libraries (if installed)
RUN apt-get remove --purge -y libgtest-dev && apt-get autoremove -y
RUN apt-get install -y build-essential g++ make cmake gawk git ca-certificates
RUN apt-get install -y \
libboost-filesystem-dev \
libboost-system-dev \
libboost-thread-dev
COPY / /percolator
RUN mkdir -p /release /build
RUN mkdir -p /build/percolator-noxml /build/percolator /build/converters;
WORKDIR /build/percolator-noxml
RUN cmake ${percolator_cmake_args} /percolator
RUN make
RUN make install
FROM docker.io/library/ubuntu:24.04 AS runtime
RUN apt-get update && apt-get install -y \
libboost-system-dev \
libboost-filesystem-dev \
libboost-thread-dev \
libbz2-1.0 \
libcurl4-openssl-dev \
libgomp1 \
zlib1g
COPY --from=builder /usr/bin/percolator /usr/bin/percolator