File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,15 +6,20 @@ ARG USER_GID=$USER_UID
66
77ENV DEBIAN_FRONTEND=noninteractive
88
9+ RUN apt-key del F42ED6FBAB17C654 && \
10+ mkdir -p /etc/apt/keyrings && \
11+ curl -fsSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | gpg --dearmor | sudo tee /etc/apt/keyrings/ros-archive-keyring.gpg > /dev/null && \
12+ echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu noble main" | sudo tee /etc/apt/sources.list.d/ros2.list && \
13+ rm /etc/apt/sources.list.d/ros2-latest.list 2>/dev/null || true
14+
915RUN userdel $(getent passwd 1000 | cut -d: -f1)
1016RUN groupadd --gid $USER_GID $USERNAME \
1117 && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
1218 && apt-get update \
1319 && apt-get install -y sudo \
1420 && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
1521 && chmod 0440 /etc/sudoers.d/$USERNAME
16- RUN apt-get update && apt-get upgrade -y
17- RUN apt-get install -y python3-pip
22+ RUN apt-get update && apt-get upgrade -y && apt-get install -y python3-pip
1823ENV DEBIAN_FRONTEND=dialog
1924ENV SHELL /bin/bash
2025
You can’t perform that action at this time.
0 commit comments