File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed
Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1- FROM ros:jazzy-ros-base
1+ # ── Stage 0: base ─────────────────────────────────────────
2+ FROM ros:jazzy-ros-base AS base
23
34RUN apt-get update && apt-get install -y \
45 curl \
6+ python3-pip \
57 && rm -rf /var/lib/apt/lists/*
68
79WORKDIR /ws
@@ -13,8 +15,7 @@ RUN rosdep init || true \
1315
1416RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
1517
16- COPY . .
17-
18- RUN pip install
19-
18+ # ── Stage 1: development ───────────────────────────────────
19+ FROM base AS development
20+ # Code is mounted via volume in docker-compose, nothing is copied here
2021CMD ["bash" ]
Original file line number Diff line number Diff line change 11services :
2+
23 lambkin_dev :
34 build :
45 context : ../../..
56 dockerfile : examples/beluga/docker/Dockerfile
7+ target : development
68 image : lambkin_ros:jazzy
79 container_name : lambkin_developer
810 network_mode : " host"
911 stdin_open : true
1012 tty : true
13+ profiles : ["development"]
14+ volumes :
15+ - ../../..:/ws
16+
17+ lambkin_prod :
18+ build :
19+ context : ../../..
20+ dockerfile : examples/beluga/docker/Dockerfile
21+ target : production
22+ image : lambkin_ros:jazzy
23+ container_name : lambkin_production
24+ network_mode : " host"
25+ stdin_open : true
26+ tty : true
27+ profiles : ["production"]
You can’t perform that action at this time.
0 commit comments