-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
49 lines (37 loc) · 1.22 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
40
41
42
43
44
45
46
FROM ubuntu:22.04 as builder
# Prerequisites
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt install -y --fix-missing --no-install-recommends \
git \
build-essential \
software-properties-common \
cmake \
libtbb-dev \
libboost-system-dev \
libboost-serialization-dev \
libpdal-dev \
libeigen3-dev
COPY . /opc
# Run build
RUN cd /opc && mkdir build && cd build && cmake -DWITH_GBT=ON .. && make -j$(nproc)
FROM ubuntu:22.04 as runner
LABEL Author="Luca Di Leo <[email protected]>" \
Description="Fast and memory efficient semantic segmentation of 3D point clouds"
# Prerequisites
ENV TZ=Europe/Rome
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends \
libtbb2 \
libboost-iostreams1.74.0 \
libboost-system1.74.0 \
libboost-serialization1.74.0 \
libpdal-base13 \
libgomp1 && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
apt-get autoremove
COPY --from=builder /opc/build ./build
# Let pcclassify and pctrain be called without ./
ENV PATH="/build:$PATH"
WORKDIR /build