Skip to content

Commit

Permalink
ci(devcontainer): Remove apt cache after installing
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-caspers authored and AiyionPrime committed Jul 8, 2024
1 parent e97faf9 commit 62e0e9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand Down

0 comments on commit 62e0e9f

Please sign in to comment.