forked from kharchenkolab/Baysor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (51 loc) · 2.01 KB
/
Copy pathDockerfile
File metadata and controls
60 lines (51 loc) · 2.01 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM ubuntu:24.04 AS build
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
lsb-release \
wget \
&& wget https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
&& apt-get install -y --no-install-recommends ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
&& rm -f ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
&& apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
ninja-build \
pkg-config \
git \
libeigen3-dev \
libomp-dev \
libspdlog-dev \
libcgal-dev \
libarrow-dev \
libparquet-dev \
libhdf5-dev \
nlohmann-json3-dev \
libtiff-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
RUN cmake -S . -B build -GNinja -DBAYSOR_WITH_TESTS=OFF
RUN cmake --build build --target baysor -j"$(nproc)"
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
lsb-release \
wget \
&& wget https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
&& apt-get install -y --no-install-recommends ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
&& rm -f ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
&& apt-get update && apt-get install -y --no-install-recommends \
libeigen3-dev \
libomp-dev \
libspdlog-dev \
libcgal-dev \
libarrow-dev \
libparquet-dev \
libhdf5-dev \
nlohmann-json3-dev \
libtiff-dev \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /src/build/baysor /usr/local/bin/baysor
ENTRYPOINT ["/usr/local/bin/baysor"]