Skip to content

Commit 9292bec

Browse files
authored
Improve docker cache utiliaztion
Bind mount only the src folder when building the stage that install ros dependancies
2 parents 16b701b + 4f1357f commit 9292bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ RUN groupadd realtime && \
6767
# hadolint ignore=SC1091
6868
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
6969
--mount=type=cache,target=/var/lib/apt,sharing=locked \
70-
--mount=type=bind,target=${USER_WS}/,source=. \
70+
--mount=type=bind,target=${USER_WS}/src,source=./src \
7171
. /opt/overlay_ws/install/setup.sh && \
7272
apt-get update && \
7373
rosdep install -q -y \

0 commit comments

Comments
 (0)