Skip to content

Commit

Permalink
remove default ubuntu user in 24.04 while generating container.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinit-chauhan committed Oct 2, 2024
1 parent 0a97593 commit ce68c08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev-tools/packaging/templates/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ RUN for iter in {1..10}; do \
{{- end }}

{{- if contains .from "ubuntu" }}
RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu

RUN for iter in {1..10}; do \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes ca-certificates curl gawk libcap2-bin xz-utils && \
Expand Down

0 comments on commit ce68c08

Please sign in to comment.