Skip to content

Commit 9ab85ba

Browse files
committed
Update dockerfile
1 parent 0bf872a commit 9ab85ba

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ ARG USER_GID=$USER_UID
66

77
ENV 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+
915
RUN userdel $(getent passwd 1000 | cut -d: -f1)
1016
RUN 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
1823
ENV DEBIAN_FRONTEND=dialog
1924
ENV SHELL /bin/bash
2025

0 commit comments

Comments
 (0)