forked from ros-industrial-consortium/scan_n_plan_workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 899 Bytes
/
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
ARG TAG
FROM ghcr.io/tesseract-robotics/tesseract_ros2:${TAG}
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND noninteractive
USER root
# Bind mount the source directory so as not to unnecessarily copy source code into the docker image
ARG WORKSPACE_DIR=/opt/snp
RUN --mount=type=bind,target=${WORKSPACE_DIR}/src/snp \
apt update -y -qq \
&& source /opt/tesseract_ros2/install/setup.bash \
&& vcs import ${WORKSPACE_DIR}/src < ${WORKSPACE_DIR}/src/snp/dependencies.repos --shallow \
&& rosdep install \
--from-paths ${WORKSPACE_DIR}/src \
-iry \
--skip-keys libvtk
# Build the repository
# Bind mount the source directory so as not to unnecessarily copy source code into the docker image
RUN --mount=type=bind,target=${WORKSPACE_DIR}/src/snp \
source /opt/tesseract_ros2/install/setup.bash \
&& cd ${WORKSPACE_DIR} \
&& colcon build --cmake-args \
&& rm -rf build log