Skip to content

Commit

Permalink
docker: add option to keep launch file
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Jan 31, 2025
1 parent f4b49be commit c0cd68f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM nvidia/cuda:11.2.2-runtime-ubuntu20.04
ARG KEEP_LAUNCH_FILES=false
ENV DEBIAN_FRONTEND=noninteractive
RUN rm /etc/apt/sources.list.d/cuda.list

Expand Down Expand Up @@ -98,7 +99,10 @@ RUN cd ~/detic_ws/src &&\
cd ~/detic_ws && catkin init && catkin build

# to avoid conflcit when mounting
RUN rm -rf ~/detic_ws/src/detic_ros/launch
RUN if [ "$KEEP_LAUNCH_FILES" = "false" ]; then \
rm -rf ~/detic_ws/src/detic_ros/launch; \
fi


########################################
########### ENV VARIABLE STUFF #########
Expand Down

0 comments on commit c0cd68f

Please sign in to comment.