Skip to content

Commit 668745a

Browse files
committed
Implemented development behaviour
Signed-off-by: Maria Teresa Ortega <teresa.ortega0903@gmail.com>
1 parent 0b59030 commit 668745a

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

examples/beluga/docker/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
FROM ros:jazzy-ros-base
1+
# ── Stage 0: base ─────────────────────────────────────────
2+
FROM ros:jazzy-ros-base AS base
23

34
RUN apt-get update && apt-get install -y \
45
curl \
6+
python3-pip \
57
&& rm -rf /var/lib/apt/lists/*
68

79
WORKDIR /ws
@@ -13,8 +15,7 @@ RUN rosdep init || true \
1315

1416
RUN 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
2021
CMD ["bash"]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
services:
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"]

0 commit comments

Comments
 (0)