-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 747 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 747 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
29
30
FROM slam:base
WORKDIR /workspace
# Install dependencies
RUN apt-get update && apt-get install -y \
libpcl-dev \
liboctomap-dev \
octomap-tools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Clone Bonxai (header-only library)
RUN git clone https://github.com/facontidavide/Bonxai.git /tmp/bonxai && \
mkdir -p /workspace/2_31/3rdparty/bonxai && \
cp -r /tmp/bonxai/bonxai_core/include/bonxai/* /workspace/2_31/3rdparty/bonxai/ && \
rm -rf /tmp/bonxai
# Copy project files
COPY . /workspace/2_31
# Build the tutorial examples
RUN cd /workspace/2_31 && \
mkdir -p build && cd build && \
cmake -GNinja \
-DCMAKE_BUILD_TYPE=Release \
.. && \
ninja
WORKDIR /workspace/2_31/build