File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ build /
2+ install /
3+ log /
4+ __pycache__ /
5+ * .pyc
6+ .venv /
7+ venv /
8+ .git /
Original file line number Diff line number Diff line change @@ -19,3 +19,19 @@ RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
1919FROM base AS development
2020# Code is mounted via volume in docker-compose, nothing is copied here
2121CMD ["bash" ]
22+
23+ # ── Stage 2: production ────────────────────────────────────
24+ FROM base AS production
25+
26+ COPY . /ws/src/
27+
28+ RUN /usr/bin/uv pip install /ws/src/ --system --break-system-packages \
29+ && rm -rf /ws/src/README.md /ws/src/pyproject.toml
30+
31+ RUN apt-get update \
32+ && rosdep install --from-paths src --ignore-src -y \
33+ && rm -rf /var/lib/apt/lists/*
34+
35+ RUN . /opt/ros/jazzy/setup.sh && colcon build
36+
37+ CMD ["bash" ]
You can’t perform that action at this time.
0 commit comments