diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a2113b2..52a8dc4 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -12,7 +12,9 @@ RUN apt-get update && apt-get install -y \ vim \ python3-pip \ python3-vcstool \ - bash-completion + bash-completion \ + sudo \ + && rm -rf /var/lib/apt/lists/* ARG USERNAME=developer ARG USER_UID=1000 @@ -22,8 +24,6 @@ ARG USER_GID=$USER_UID RUN groupadd --gid "$USER_GID" "$USERNAME" \ && useradd --uid "$USER_UID" --gid "$USER_GID" -m "$USERNAME" \ # Add sudo support - && apt-get update \ - && apt-get install -y sudo \ && echo "$USERNAME" ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/"$USERNAME" \ && chmod 0440 /etc/sudoers.d/"$USERNAME"